From: Editor Lionbridge Date: Tue, 1 Aug 2017 14:59:12 +0000 (+0530) Subject: Review widget-control API cs files X-Git-Tag: submit/trunk/20170823.075128~63^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dedf65cef16ce75d3fda57c1ae29a68c94ab27d2;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Review widget-control API cs files Change-Id: I25c3efec1fab2eac7c5e6c37bdab5fe07886fdce --- diff --git a/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetControl.cs b/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetControl.cs index 86e5969..9407e0d 100755 --- a/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetControl.cs +++ b/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetControl.cs @@ -21,12 +21,12 @@ using Tizen.Applications; namespace Tizen.Applications { /// - /// Class for receiving widget events and sending data to widget. + /// The class for receiving widget events and sending data to the widget. /// public class WidgetControl : IDisposable { /// - /// Class for widget instance. + /// Class for the widget instance. /// public class Instance { @@ -38,16 +38,16 @@ namespace Tizen.Applications } /// - /// Widget ID. + /// The widget ID. /// - /// 3 + /// 3 public string Id { get; internal set; } /// - /// Gets widget content. + /// Gets the widget content. /// - /// 3 - /// Thrown in case of failed conditions + /// 3 + /// Thrown in case of failed conditions. public Bundle GetContent() { IntPtr h; @@ -69,12 +69,12 @@ namespace Tizen.Applications /// /// Changes the content for the widget instance. /// - /// 3 - /// Content to be changed - /// True if you want to update your widget even if the provider is paused otherwise false. - /// Thrown when failed because of invalid argument - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// 3 + /// Content to be changed. + /// True if you want to update your widget even if the provider is paused, otherwise false. + /// Thrown when failed because of an invalid argument. + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public void ChangeContent(Bundle content, bool force) { Interop.WidgetService.ErrorCode err = Interop.WidgetService.UpdateContent(_widgetId, Id, content.SafeBundleHandle, force ? 1 : 0); @@ -101,10 +101,10 @@ namespace Tizen.Applications /// /// Changes the update period for the widget instance. /// - /// 3 - /// Thrown when failed because of invalid argument - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// 3 + /// Thrown when failed because of an invalid argument. + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public void ChangePeriod(double period) { Interop.WidgetService.ErrorCode err = Interop.WidgetService.ChangePeriod(_widgetId, Id, period); @@ -127,7 +127,7 @@ namespace Tizen.Applications } /// - /// Class for widget size information. + /// The class for the widget size information. /// public class Scale { @@ -137,9 +137,9 @@ namespace Tizen.Applications } /// - /// Enumeration for types of widget size + /// Enumeration for the types of widget size. /// - /// 3 + /// 3 public enum SizeType : int { /// @@ -212,25 +212,25 @@ namespace Tizen.Applications /// /// Widget width. /// - /// 3 + /// 3 public int Width { get; internal set; } /// - /// Widget height. + ///Widget height. /// - /// 3 + /// 3 public int Height { get; internal set; } /// - /// The path for widget preview image file. + /// The path for the widget preview image file. /// - /// 3 + /// 3 public string PreviewImagePath { get; internal set; } /// /// The size type of the widget. /// - /// 3 + /// 3 public SizeType Type { get; internal set; } } @@ -243,15 +243,15 @@ namespace Tizen.Applications private static IList s_eventObjects = new List(); /// - /// Factory method for WidgetControl. - /// It will create all objects of WidgetControl base on package ID. + /// Factory method for the WidgetControl. + /// It will create all the objects of WidgetControl based on the package ID. /// - /// 3 - /// Parkage ID + /// 3 + /// Package ID. /// http://tizen.org/privilege/widget.viewer - /// Thrown when failed because of invalid argument - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// Thrown when failed because of an invalid argument. + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public static WidgetControl[] CreateAll(string pkgId) { List list = new List(); @@ -277,13 +277,13 @@ namespace Tizen.Applications } /// - /// Gets all widget IDs by package ID. + /// Gets all the widget IDs by the package ID. /// - /// 3 + /// 3 /// http://tizen.org/privilege/widget.viewer - /// Thrown when failed because of invalid argument - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// Thrown when failed because of an invalid argument. + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public static string[] GetWidgetIds(string pkgId) { List list = new List(); @@ -309,15 +309,15 @@ namespace Tizen.Applications } /// - /// Widget ID. + /// The widget ID. /// - /// 3 + /// 3 public string Id { get; internal set; } /// - /// The flag value for "nodisplay" + /// The flag value for "nodisplay". /// - /// 3 + /// 3 /// http://tizen.org/privilege/widget.viewer public bool IsNoDisplay { @@ -331,11 +331,11 @@ namespace Tizen.Applications } /// - /// Event handler for created widget instance. + /// The event handler for a created widget instance. /// - /// 3 - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// 3 + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public event EventHandler Created { add @@ -351,11 +351,11 @@ namespace Tizen.Applications } /// - /// Event handler for resumed widget instance. + /// The event handler for a resumed widget instance. /// - /// 3 - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// 3 + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public event EventHandler Resumed { add @@ -371,11 +371,11 @@ namespace Tizen.Applications } /// - /// Event handler for paused widget instance. + /// The event handler for a paused widget instance. /// - /// 3 - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// 3 + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public event EventHandler Paused { add @@ -391,11 +391,11 @@ namespace Tizen.Applications } /// - /// Event handler for destroyed widget instance. + /// The event handler for a destroyed widget instance. /// - /// 3 - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// 3 + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public event EventHandler Destroyed { add @@ -411,10 +411,10 @@ namespace Tizen.Applications } /// - /// A constructor of WidgetControl object + /// The constructor of the WidgetControl object. /// - /// 3 - /// widget id. + /// 3 + /// Widget ID. public WidgetControl(string widgetId) { Id = widgetId; @@ -429,12 +429,12 @@ namespace Tizen.Applications } /// - /// Gets objects for widget instance information. + /// Gets the objects for widget instance information. /// - /// 3 - /// Thrown in case of failed conditions - /// Thrown when API is not supported in this device - /// Thrown when app does not have privilege to access this method + /// 3 + /// Thrown in case of failed conditions. + /// Thrown when the API is not supported in this device. + /// Thrown when an application does not have the privilege to access this method. public IEnumerable GetInstances() { IList instances = new List(); @@ -459,12 +459,12 @@ namespace Tizen.Applications } /// - /// Gets objects for widget scale information. + /// Gets the objects for widget scale information. /// - /// 3 + /// 3 /// http://tizen.org/privilege/widget.viewer - /// Thrown in case of failed conditions - /// Thrown when app does not have privilege to access this method + /// Thrown in case of failed conditions. + /// Thrown when an application does not have the privilege to access this method. public IEnumerable GetScales() { int[] w = new int[100]; @@ -521,12 +521,12 @@ namespace Tizen.Applications } /// - /// Gets widget name. + /// Gets the widget name. /// - /// 3 - /// Language + /// 3 + /// Language. /// http://tizen.org/privilege/widget.viewer - /// Thrown when argument is null + /// Thrown when the argument is null. public string GetName(string lang) { if (lang == null) @@ -536,12 +536,12 @@ namespace Tizen.Applications } /// - /// Gets widget icon path. + /// Gets the widget icon path. /// - /// 3 - /// Language + /// 3 + /// Language. /// http://tizen.org/privilege/widget.viewer - /// Thrown when argument is null + /// Thrown when the argument is null. public string GetIconPath(string lang) { if (lang == null) @@ -553,9 +553,9 @@ namespace Tizen.Applications } /// - /// Releases all resources used by the WidgetControl class. + /// Releases all the resources used by the WidgetControl class. /// - /// 3 + /// 3 public void Dispose() { Dispose(true); diff --git a/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetLifecycleEventArgs.cs b/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetLifecycleEventArgs.cs index 6d553f4..87ffc59 100755 --- a/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetLifecycleEventArgs.cs +++ b/src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetLifecycleEventArgs.cs @@ -19,7 +19,7 @@ using System; namespace Tizen.Applications { /// - /// Class for event arguments of the widget lifecycle. + /// The class for event arguments of the widget lifecycle. /// public class WidgetLifecycleEventArgs : EventArgs { @@ -28,7 +28,7 @@ namespace Tizen.Applications } /// - /// Enumeration for event type. + /// Enumeration for the event type. /// public enum EventType { @@ -54,17 +54,17 @@ namespace Tizen.Applications } /// - /// Widget ID. + /// The widget ID. /// public string WidgetId { get; internal set; } /// - /// Widget instnace ID. + /// The widget instance ID. /// public string InstanceId { get; internal set; } /// - /// Event type. + /// The event type. /// public EventType Type { get; internal set; } }