diff --git a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentInfo.cs b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentInfo.cs index bd9074cda14..0a7b815db5e 100755 --- a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentInfo.cs +++ b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentInfo.cs @@ -24,6 +24,7 @@ namespace Tizen.Applications.ComponentBased /// This class encapsulates details such as component ID, application ID, and other attributes. /// /// 6 + [Obsolete("This has been deprecated in API14")] public class ComponentInfo : IDisposable { private const string LogTag = "Tizen.Applications"; @@ -51,6 +52,7 @@ internal ComponentInfo(IntPtr infoHandle) /// Thrown when permission is denied. /// http://tizen.org/privilege/packagemanager.info /// 6 + [Obsolete("This has been deprecated in API14")] public ComponentInfo(string componentId) { _componentId = componentId; @@ -75,6 +77,7 @@ public ComponentInfo(string componentId) /// Gets the ID of the component. /// /// 6 + [Obsolete("This has been deprecated in API14")] public string ComponentId { get @@ -98,6 +101,7 @@ public string ComponentId /// Gets the application ID associated with the component. /// /// 6 + [Obsolete("This has been deprecated in API14")] public string ApplicationId { get @@ -117,6 +121,7 @@ public string ApplicationId /// Gets the type of the component. /// /// 6 + [Obsolete("This has been deprecated in API14")] public ComponentType ComponentType { get @@ -136,6 +141,7 @@ public ComponentType ComponentType /// Checks whether the icon of the component should be displayed. /// /// 6 + [Obsolete("This has been deprecated in API14")] public bool IsIconDisplayed { get @@ -155,6 +161,7 @@ public bool IsIconDisplayed /// Checks whether the component is managed by the task manager. /// /// 6 + [Obsolete("This has been deprecated in API14")] public bool IsManagedByTaskManager { get @@ -174,6 +181,7 @@ public bool IsManagedByTaskManager /// Gets the absolute path of the component's icon image. /// /// 6 + [Obsolete("This has been deprecated in API14")] public string IconPath { get @@ -192,6 +200,8 @@ public string IconPath /// /// Gets the label of the component. /// + /// 6 + [Obsolete("This has been deprecated in API14")] public string Label { get @@ -214,6 +224,7 @@ public string Label /// Available values are in the format "[2-letter lowercase language code (ISO 639-1)]-[2-letter lowercase country code (ISO 3166-alpha-2)]". /// The localized label corresponding to the specified locale. /// 6 + [Obsolete("This has been deprecated in API14")] public string GetLocalizedLabel(string locale) { string label = string.Empty; diff --git a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentManager.cs b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentManager.cs index b409383d732..05b7e669905 100755 --- a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentManager.cs +++ b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentManager.cs @@ -26,6 +26,7 @@ namespace Tizen.Applications.ComponentBased /// This class has the methods and events of the ComponentManager. /// /// 6 + [Obsolete("This has been deprecated in API14")] public static class ComponentManager { private const string LogTag = "Tizen.Applications"; @@ -43,6 +44,7 @@ public static class ComponentManager /// Thrown when permission is denied to access the component information. /// http://tizen.org/privilege/packagemanager.info /// 6 + [Obsolete("This has been deprecated in API14")] public static async Task> GetInstalledComponentsAsync() { return await Task.Run(() => @@ -89,6 +91,7 @@ public static async Task> GetInstalledComponentsAsync /// Thrown when permission is denied to access the running components. /// http://tizen.org/privilege/packagemanager.info /// 6 + [Obsolete("This has been deprecated in API14")] public static async Task> GetRunningComponentsAsync() { return await Task.Run(() => @@ -135,6 +138,7 @@ public static async Task> GetRunningCompone /// Thrown when permission is denied to access the component status. /// http://tizen.org/privilege/packagemanager.info /// 6 + [Obsolete("This has been deprecated in API14")] public static bool IsRunning(string componentId) { bool isRunning = false; @@ -160,6 +164,7 @@ public static bool IsRunning(string componentId) /// The platform determines if the target component can be terminated based on its current state. /// /// 6 + [Obsolete("This has been deprecated in API14")] public static void TerminateBackgroundComponent(ComponentRunningContext context) { if (context == null) diff --git a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentRunningContext.cs b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentRunningContext.cs index e8d22995db6..5f397954ed2 100755 --- a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentRunningContext.cs +++ b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentRunningContext.cs @@ -27,6 +27,7 @@ namespace Tizen.Applications.ComponentBased /// to retrieve information about the component's state and behavior. /// /// 6 + [Obsolete("This has been deprecated in API14")] public class ComponentRunningContext : IDisposable { private const string LogTag = "Tizen.Applications"; @@ -50,6 +51,7 @@ internal ComponentRunningContext(IntPtr contextHandle) /// Thrown when permission is denied to access the component. /// http://tizen.org/privilege/packagemanager.info /// 6 + [Obsolete("This has been deprecated in API14")] public ComponentRunningContext(string componentId) { _componentId = componentId; @@ -74,6 +76,7 @@ public ComponentRunningContext(string componentId) /// Represents the possible states of a component. /// /// 6 + [Obsolete("This has been deprecated in API14")] public enum ComponentState { /// @@ -112,6 +115,7 @@ public enum ComponentState /// /// The component ID as a string. /// 6 + [Obsolete("This has been deprecated in API14")] public string ComponentId { get @@ -135,6 +139,7 @@ public string ComponentId /// Gets the application ID associated with the component. /// /// 6 + [Obsolete("This has been deprecated in API14")] public string ApplicationId { get @@ -154,6 +159,7 @@ public string ApplicationId /// Gets the instance ID of the component. /// /// 6 + [Obsolete("This has been deprecated in API14")] public string InstanceId { get @@ -173,6 +179,7 @@ public string InstanceId /// Gets the current state of the component. /// /// 6 + [Obsolete("This has been deprecated in API14")] public ComponentState State { get @@ -193,6 +200,7 @@ public ComponentState State /// /// true if the component is terminated; otherwise, false. /// 6 + [Obsolete("This has been deprecated in API14")] public bool IsTerminated { get @@ -213,6 +221,7 @@ public bool IsTerminated /// /// true if the component is a sub-component; otherwise, false. /// 6 + [Obsolete("This has been deprecated in API14")] public bool IsSubComponent { get @@ -237,6 +246,7 @@ public bool IsSubComponent /// Thrown when permission is denied to resume the component. /// http://tizen.org/privilege/appmanager.launch /// 6 + [Obsolete("This has been deprecated in API14")] public void Resume() { Interop.ComponentManager.ErrorCode err = Interop.ComponentManager.ComponentManagerResumeComponent(_contextHandle); @@ -256,6 +266,7 @@ public void Resume() /// http://tizen.org/privilege/appmanager.launch /// 6 [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API14")] public void Pause() { Interop.ComponentManager.ErrorCode err = Interop.ComponentManager.ComponentManagerPauseComponent(_contextHandle); @@ -275,6 +286,7 @@ public void Pause() /// http://tizen.org/privilege/appmanager.launch /// 6 [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API14")] public void Terminate() { Interop.ComponentManager.ErrorCode err = Interop.ComponentManager.ComponentManagerTerminateComponent(_contextHandle); diff --git a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentType.cs b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentType.cs index ee01486f55f..0ee5882e187 100755 --- a/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentType.cs +++ b/src/Tizen.Applications.ComponentBased.ComponentManager/Tizen.Applications/ComponentType.cs @@ -13,13 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + +using System; + namespace Tizen.Applications.ComponentBased { /// /// Enumeration for component type. /// /// 6 + [Obsolete("This has been deprecated in API14")] public enum ComponentType { ///