Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.WidgetControl.dll
- API Level:
- 3
The class for receiving widget events and sending data to the widget.
public class WidgetControl : IDisposable
- Inheritance
-
Constructors
View Source
The constructor of the WidgetControl object.
Declaration
public WidgetControl(string widgetId)
Parameters
Type |
Name |
Description |
String |
widgetId |
Widget ID.
|
API Level: 3
Properties
Declaration
public string Id { get; }
Property Value
API Level: 3
Declaration
public bool IsNoDisplay { get; }
Property Value
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Declaration
public string MainAppId { get; }
Property Value
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Declaration
public int MaxCount { get; }
Property Value
API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Declaration
public string PackageId { get; }
Property Value
API Level: 6
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Declaration
public string SetupAppId { get; }
Property Value
API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Methods
View Source
Factory method for the WidgetControl.
It will create all the objects of WidgetControl based on the package ID.
Declaration
public static WidgetControl[] CreateAll(string pkgId)
Parameters
Type |
Name |
Description |
String |
pkgId |
Package ID.
|
Returns
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
View Source
Releases all the resources used by the WidgetControl class.
Declaration
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
Declaration
protected void Finalize()
Declaration
public string GetIconPath(string lang)
Parameters
Type |
Name |
Description |
String |
lang |
Language.
|
Returns
Type |
Description |
String |
The widget icon path.
|
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Declaration
public int GetInstanceCount()
Returns
Type |
Description |
Int32 |
The widget instance count.
|
API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
View Source
Gets the objects for widget instance information.
Declaration
public IEnumerable<WidgetControl.Instance> GetInstances()
Returns
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
Declaration
public string GetName(string lang)
Parameters
Type |
Name |
Description |
String |
lang |
Language.
|
Returns
Type |
Description |
String |
The widget name.
|
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
View Source
Gets the objects for widget scale information.
Declaration
public IEnumerable<WidgetControl.Scale> GetScales()
Returns
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Declaration
public static string[] GetWidgetIds(string pkgId)
Parameters
Type |
Name |
Description |
String |
pkgId |
Package ID.
|
Returns
Type |
Description |
String[] |
The widget id array.
|
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/widget.viewer
Feature: http://tizen.org/feature/shell.appwidget
Events
View Source
The event handler for a created widget instance.
Declaration
public event EventHandler<WidgetLifecycleEventArgs> Created
Event Type
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
View Source
The event handler for a destroyed widget instance.
Declaration
public event EventHandler<WidgetLifecycleEventArgs> Destroyed
Event Type
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
View Source
The event handler for a paused widget instance.
Declaration
public event EventHandler<WidgetLifecycleEventArgs> Paused
Event Type
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
View Source
The event handler for a resumed widget instance.
Declaration
public event EventHandler<WidgetLifecycleEventArgs> Resumed
Event Type
API Level: 3
Feature: http://tizen.org/feature/shell.appwidget
Extension Methods