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#
Copy
public class ApplicationRunningContext : IDisposable
Inheritance
ApplicationRunningContext

Constructors

View Source

ApplicationRunningContext(String)

A constructor of ApplicationRunningContext that takes the application ID.

Declaration
C#
Copy
public ApplicationRunningContext(string applicationId)
Parameters
Type Name Description
String applicationId

Application ID.

API Level: 3
View Source

ApplicationRunningContext(String, String)

A constructor of ApplicationRunningContext that takes the application id.

Declaration
C#
Copy
public ApplicationRunningContext(string applicationId, string instanceId)
Parameters
Type Name Description
String applicationId

application id.

String instanceId

instance id.

API Level: 4

Properties

View Source

ApplicationId

Gets the application ID.

Declaration
C#
Copy
public string ApplicationId { get; }
Property Value
Type Description
String
API Level: 3
View Source

IsSubApp

Gets whether the application is sub application of the application group.

Declaration
C#
Copy
public bool IsSubApp { get; }
Property Value
Type Description
Boolean
API Level: 3
View Source

IsTerminated

Gets whether the application is terminated.

Declaration
C#
Copy
public bool IsTerminated { get; }
Property Value
Type Description
Boolean
API Level: 6
View Source

PackageId

Gets the package ID of the application.

Declaration
C#
Copy
public string PackageId { get; }
Property Value
Type Description
String
API Level: 3
View Source

ProcessId

Gets the application's process ID.

Declaration
C#
Copy
public int ProcessId { get; }
Property Value
Type Description
Int32
API Level: 3
View Source

State

Gets the state of the application.

Declaration
C#
Copy
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 Source

Dispose()

Releases all resources used by the ApplicationRunningContext class.

Declaration
C#
Copy
public void Dispose()
API Level: 3
View Source

Finalize()

Destructor of the class.

Declaration
C#
Copy
protected void Finalize()
View Source

Resume()

Resumes the running application.

Declaration
C#
Copy
public void Resume()
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.launch
View Source

Terminate()

Terminates the application.

Declaration
C#
Copy
public void Terminate()
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.kill
View Source

TerminateWithoutRestarting()

Terminates the application without restarting.

Declaration
C#
Copy
public void TerminateWithoutRestarting()
API Level: 10
Privilege Level: public
Privilege: http://tizen.org/privilege/appmanager.kill

Extension Methods