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.
public class ApplicationRunningContext : IDisposable
- Inheritance
-
ApplicationRunningContext
- Implements
Constructors
View SourceApplicationRunningContext(String)
A constructor of ApplicationRunningContext that takes the application ID.
Declaration
public ApplicationRunningContext(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
String | applicationId | Application ID. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed because of an invalid argument. |
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
View SourceApplicationId
Gets the application ID.
Declaration
public string ApplicationId { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceIsSubApp
Gets whether the application is sub application of the application group.
Declaration
public bool IsSubApp { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceIsTerminated
Gets whether the application is terminated.
Declaration
public bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 6
View SourcePackageId
Gets the package ID of the application.
Declaration
public string PackageId { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceProcessId
Gets the application's process ID.
Declaration
public int ProcessId { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
View SourceState
Gets the state of the application.
Declaration
public 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
View SourceDispose()
Releases all resources used by the ApplicationRunningContext class.
Declaration
public void Dispose()
API Level: 3
View SourceFinalize()
Destructor of the class.
Declaration
protected void Finalize()
Resume()
Resumes the running application.
Declaration
public void Resume()
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when failed of invalid argument. |
UnauthorizedAccessException | Thrown when failed because of permission denied. |
InvalidOperationException | Thrown when failed because of system error. |