Class ReceivedAppControl
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
- API Level:
- 3
Represents the received AppControl.
C#Copypublic class ReceivedAppControl : AppControl
- Inheritance
Examples
Copypublic class ReceivedAppControlExample : UIApplication { // ... protected override void OnAppControlReceived(AppControlReceivedEventArgs e) { ReceivedAppControl control = e.ReceivedAppControl; if (control.Operation == AppControlOperations.Pick) { Log.Debug(LogTag, "Received AppControl is Pick"); } if (control.IsReplyRequest) { AppControl replyRequest = new AppControl(); replyRequest.ExtraData.Add("myKey", "I'm replying"); control.ReplyToLaunchRequest(replyRequest, AppControlReplyResult.Succeeded); } } }
Constructors
Declaration
C#Copypublic ReceivedAppControl(SafeAppControlHandle handle)
Parameters
Type | Name | Description |
---|---|---|
SafeAppControlHandle | handle | App control handle |
API Level: 3
Properties
Declaration
C#Copypublic string CallerApplicationId { get; }
Property Value
Type | Description |
---|---|
System.String | The application ID of the caller. |
Examples
Copyprotected override void OnAppControlReceived(AppControlReceivedEventArgs e) { ReceivedAppControl control = e.ReceivedAppControl; string caller = control.CallerApplicationId; }
API Level: 3
Declaration
C#Copypublic bool IsReplyRequest { get; }
Property Value
Type | Description |
---|---|
System.Boolean | If true, this ReceivedAppControl is requested by the caller, otherwise false |
Examples
Copyprotected override void OnAppControlReceived(AppControlReceivedEventArgs e) { ReceivedAppControl control = e.ReceivedAppControl; bool isReply = control.IsReplyRequest; }
API Level: 3
Methods
View Source
ReplyToLaunchRequest(AppControl, AppControlReplyResult)
Replies to the launch request sent by the caller. If the caller application sends the launch request to receive the result, the callee application can return the result back to the caller.
Declaration
C#Copypublic void ReplyToLaunchRequest(AppControl replyRequest, AppControlReplyResult result)
Parameters
Type | Name | Description |
---|---|---|
AppControl | replyRequest | The AppControl in which the results of the callee are contained. |
AppControlReplyResult | result | The result code of the launch request. |
Examples
Copyprotected override void OnAppControlReceived(AppControlReceivedEventArgs e) { ReceivedAppControl control = e.ReceivedAppControl; if (control.IsReplyRequest) { AppControl replyRequest = new AppControl(); replyRequest.ExtraData.Add("myKey", "I'm replying"); control.ReplyToLaunchRequest(replyRequest, AppControlReplyResult.Succeeded); } }