Class ApplicationRunningContext
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
- API Level:
- 3
This class provides methods and properties to get information of the application.
C#Copypublic class ApplicationRunningContext : IDisposable
- Inheritance
-
System.ObjectApplicationRunningContext
- Implements
-
System.IDisposable
Constructors
View Source
ApplicationRunningContext(String)
A constructor of ApplicationRunningContext that takes the application ID.
Declaration
C#Copypublic ApplicationRunningContext(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationId | Application ID. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of an invalid argument. |
System.InvalidOperationException | Thrown when failed because of the "application not exist" error or the system error. |
OutOfMemoryException | Thrown when failed because of out of memory. |
API Level: 3
Properties
Declaration
C#Copypublic string ApplicationId { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 3
Declaration
C#Copypublic bool IsSubApp { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: 3
Declaration
C#Copypublic bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: 6
Declaration
C#Copypublic string PackageId { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 3
Declaration
C#Copypublic int ProcessId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic ApplicationRunningContext.AppState State { get; }
Property Value
Type | Description |
---|---|
ApplicationRunningContext.AppState |
Remarks
Note that application's state might be changed after you get app_context. This API just returns the state of application when you get the app_context.
API Level: 3
Methods
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic void Resume()
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed of invalid argument. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
System.InvalidOperationException | Thrown when failed because of system error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.launch
Implements
System.IDisposable