Class ComplicationProviderSetup
Definition
- Namespace:
- Tizen.Applications.WatchfaceComplication
- Assembly:
- Tizen.Applications.WatchfaceComplication.dll
- API Level:
- 6
Represents the complication setup for a setup application.
C#Copypublic static class ComplicationProviderSetup : object
- Inheritance
-
ComplicationProviderSetup
Methods
Declaration
C#Copypublic static Bundle GetContext(ReceivedAppControl recvAppCtrl)
Parameters
Type | Name | Description |
---|---|---|
ReceivedAppControl | recvAppCtrl | The received appcontrol. |
Returns
Type | Description |
---|---|
Bundle | The setup context. |
Examples
Copyprotected override void OnAppControlReceived(AppControlReceivedEventArgs e) { if (ComplicationProviderSetup.IsEditing(e.ReceivedAppControl)) { Bundle context = ComplicationProviderSetup.GetContext(e.ReceivedAppControl); context.AddItem("TEST_KEY", "NEW CONTEXT"); ComplicationProviderSetup.ReplyToEditor(e.ReceivedAppControl, context); } base.OnAppControlReceived(e); }
API Level: 6
View Source
IsEditing(ReceivedAppControl)
Gets the received appcontrol containing information about edit.
Declaration
C#Copypublic static bool IsEditing(ReceivedAppControl recvAppCtrl)
Parameters
Type | Name | Description |
---|---|---|
ReceivedAppControl | recvAppCtrl | The received appcontrol. |
Returns
Type | Description |
---|---|
Boolean | The boolean value. |
Examples
Copyprotected override void OnAppControlReceived(AppControlReceivedEventArgs e) { if (ComplicationProviderSetup.IsEditing(e.ReceivedAppControl)) { // do something } base.OnAppControlReceived(e); }
API Level: 6
Declaration
C#Copypublic static void ReplyToEditor(ReceivedAppControl recvAppCtrl, Bundle context)
Parameters
Type | Name | Description |
---|---|---|
ReceivedAppControl | recvAppCtrl | The received appcontrol. |
Bundle | context | The context created by complication setup app. |
Examples
Copyprotected override void OnAppControlReceived(AppControlReceivedEventArgs e) { if (ComplicationProviderSetup.IsEditing(e.ReceivedAppControl)) { Bundle context = ComplicationProviderSetup.GetContext(e.ReceivedAppControl); context.AddItem("TEST_KEY", "NEW CONTEXT"); ComplicationProviderSetup.ReplyToEditor(e.ReceivedAppControl, context); } base.OnAppControlReceived(e); }