Class ApplicationRunningContext
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
This class provides methods and properties to get information of the application.
public class ApplicationRunningContext : IDisposable
- Inheritance
-
objectApplicationRunningContext
Constructors
View SourceApplicationRunningContext(string, string)
A constructor of ApplicationRunningContext that takes the application id.
Declaration
public ApplicationRunningContext(string applicationId, string instanceId)
Parameters
Type | Name | Description |
---|---|---|
string | applicationId | application id. |
string | instanceId | instance id. |
ApplicationRunningContext(string)
A constructor of ApplicationRunningContext that takes the application ID.
Declaration
public ApplicationRunningContext(string applicationId)
Parameters
Type | Name | Description |
---|---|---|
string | applicationId | Application ID. |
Properties
View SourceApplicationId
Gets the application ID.
Declaration
public string ApplicationId { get; }
Property Value
Type | Description |
---|---|
string |
IsSubApp
Gets whether the application is sub application of the application group.
Declaration
public bool IsSubApp { get; }
Property Value
Type | Description |
---|---|
bool |
IsTerminated
Gets whether the application is terminated.
Declaration
public bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
bool |
PackageId
Gets the package ID of the application.
Declaration
public string PackageId { get; }
Property Value
Type | Description |
---|---|
string |
ProcessId
Gets the application's process ID.
Declaration
public int ProcessId { get; }
Property Value
Type | Description |
---|---|
int |
State
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.
Methods
View SourceDispose()
Releases all resources used by the ApplicationRunningContext class.
Declaration
public void Dispose()
~ApplicationRunningContext()
Destructor of the class.
Declaration
protected ~ApplicationRunningContext()
Resume()
Resumes the running application.
Declaration
public void Resume()
Terminate()
Terminates the application.
Declaration
public void Terminate()
TerminateWithoutRestarting()
Terminates the application without restarting.
Declaration
public void TerminateWithoutRestarting()