Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Tizen.Applications.ComponentBased
/// This class encapsulates details such as component ID, application ID, and other attributes.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public class ComponentInfo : IDisposable
{
private const string LogTag = "Tizen.Applications";
Expand Down Expand Up @@ -51,6 +52,7 @@ internal ComponentInfo(IntPtr infoHandle)
/// <exception cref="UnauthorizedAccessException">Thrown when permission is denied.</exception>
/// <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public ComponentInfo(string componentId)
{
_componentId = componentId;
Expand All @@ -75,6 +77,7 @@ public ComponentInfo(string componentId)
/// Gets the ID of the component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string ComponentId
{
get
Expand All @@ -98,6 +101,7 @@ public string ComponentId
/// Gets the application ID associated with the component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string ApplicationId
{
get
Expand All @@ -117,6 +121,7 @@ public string ApplicationId
/// Gets the type of the component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public ComponentType ComponentType
{
get
Expand All @@ -136,6 +141,7 @@ public ComponentType ComponentType
/// Checks whether the icon of the component should be displayed.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public bool IsIconDisplayed
{
get
Expand All @@ -155,6 +161,7 @@ public bool IsIconDisplayed
/// Checks whether the component is managed by the task manager.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public bool IsManagedByTaskManager
{
get
Expand All @@ -174,6 +181,7 @@ public bool IsManagedByTaskManager
/// Gets the absolute path of the component's icon image.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string IconPath
{
get
Expand All @@ -192,6 +200,8 @@ public string IconPath
/// <summary>
/// Gets the label of the component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string Label
{
get
Expand All @@ -214,6 +224,7 @@ public string Label
/// <remarks>Available values are in the format "[2-letter lowercase language code (ISO 639-1)]-[2-letter lowercase country code (ISO 3166-alpha-2)]".</remarks>
/// <returns>The localized label corresponding to the specified locale.</returns>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string GetLocalizedLabel(string locale)
{
string label = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace Tizen.Applications.ComponentBased
/// This class has the methods and events of the ComponentManager.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public static class ComponentManager
{
private const string LogTag = "Tizen.Applications";
Expand All @@ -43,6 +44,7 @@ public static class ComponentManager
/// <exception cref="UnauthorizedAccessException"> Thrown when permission is denied to access the component information.</exception>
/// <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public static async Task<IEnumerable<ComponentInfo>> GetInstalledComponentsAsync()
{
return await Task.Run(() =>
Expand Down Expand Up @@ -89,6 +91,7 @@ public static async Task<IEnumerable<ComponentInfo>> GetInstalledComponentsAsync
/// <exception cref="UnauthorizedAccessException">Thrown when permission is denied to access the running components.</exception>
/// <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public static async Task<IEnumerable<ComponentRunningContext>> GetRunningComponentsAsync()
{
return await Task.Run(() =>
Expand Down Expand Up @@ -135,6 +138,7 @@ public static async Task<IEnumerable<ComponentRunningContext>> GetRunningCompone
/// <exception cref="UnauthorizedAccessException">Thrown when permission is denied to access the component status.</exception>
/// <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public static bool IsRunning(string componentId)
{
bool isRunning = false;
Expand All @@ -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.
/// </remarks>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public static void TerminateBackgroundComponent(ComponentRunningContext context)
{
if (context == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace Tizen.Applications.ComponentBased
/// to retrieve information about the component's state and behavior.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public class ComponentRunningContext : IDisposable
{
private const string LogTag = "Tizen.Applications";
Expand All @@ -50,6 +51,7 @@ internal ComponentRunningContext(IntPtr contextHandle)
/// <exception cref="UnauthorizedAccessException">Thrown when permission is denied to access the component.</exception>
/// <privilege>http://tizen.org/privilege/packagemanager.info</privilege>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public ComponentRunningContext(string componentId)
{
_componentId = componentId;
Expand All @@ -74,6 +76,7 @@ public ComponentRunningContext(string componentId)
/// Represents the possible states of a component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public enum ComponentState
{
/// <summary>
Expand Down Expand Up @@ -112,6 +115,7 @@ public enum ComponentState
/// </summary>
/// <returns>The component ID as a string.</returns>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string ComponentId
{
get
Expand All @@ -135,6 +139,7 @@ public string ComponentId
/// Gets the application ID associated with the component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string ApplicationId
{
get
Expand All @@ -154,6 +159,7 @@ public string ApplicationId
/// Gets the instance ID of the component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public string InstanceId
{
get
Expand All @@ -173,6 +179,7 @@ public string InstanceId
/// Gets the current state of the component.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public ComponentState State
{
get
Expand All @@ -193,6 +200,7 @@ public ComponentState State
/// </summary>
/// <returns><c>true</c> if the component is terminated; otherwise, <c>false</c>.</returns>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public bool IsTerminated
{
get
Expand All @@ -213,6 +221,7 @@ public bool IsTerminated
/// </summary>
/// <returns><c>true</c> if the component is a sub-component; otherwise, <c>false</c>.</returns>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public bool IsSubComponent
{
get
Expand All @@ -237,6 +246,7 @@ public bool IsSubComponent
/// <exception cref="UnauthorizedAccessException">Thrown when permission is denied to resume the component.</exception>
/// <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public void Resume()
{
Interop.ComponentManager.ErrorCode err = Interop.ComponentManager.ComponentManagerResumeComponent(_contextHandle);
Expand All @@ -256,6 +266,7 @@ public void Resume()
/// <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
/// <since_tizen> 6 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API14")]
public void Pause()
{
Interop.ComponentManager.ErrorCode err = Interop.ComponentManager.ComponentManagerPauseComponent(_contextHandle);
Expand All @@ -275,6 +286,7 @@ public void Pause()
/// <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
/// <since_tizen> 6 </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This has been deprecated in API14")]
public void Terminate()
{
Interop.ComponentManager.ErrorCode err = Interop.ComponentManager.ComponentManagerTerminateComponent(_contextHandle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/


using System;

namespace Tizen.Applications.ComponentBased
{
/// <summary>
/// Enumeration for component type.
/// </summary>
/// <since_tizen> 6 </since_tizen>
[Obsolete("This has been deprecated in API14")]
public enum ComponentType
{
/// <summary>
Expand Down
Loading