AppControl class

Represents a control message exchanged between applications.

An explicit or implicit control request can be made by an application to launch another application using this API. For detailed information on Tizen application controls, see: https://docs.tizen.org/application/native/guides/app-management/app-controls

For a list of common operation types and examples, see: https://docs.tizen.org/application/native/guides/app-management/common-appcontrols

Implementers

Constructors

AppControl({String? appId, String? operation, String? uri, String? mime, String? category, LaunchMode launchMode = LaunchMode.single, Map<String, dynamic> extraData = const <String, dynamic>{}})
Creates an instance of AppControl with the given parameters.

Properties

appId String?
The ID of the application to handle this request (applicable for explicit requests).
getter/setter pair
category String?
The type of the application that should handle this request, such as http://tizen.org/category/homeapp.
getter/setter pair
extraData Map<String, dynamic>
Additional information contained by this application control. Each value must be either String or non-empty List<String>.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
launchMode LaunchMode
The launch mode, either LaunchMode.single or LaunchMode.group.
getter/setter pair
mime String?
The MIME type of the data to be handled by this request.
getter/setter pair
operation String?
The operation to be performed by the callee application, such as http://tizen.org/appcontrol/operation/view.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String?
The URI of the data to be handled by this request.
getter/setter pair

Methods

getMatchedAppIds() Future<List<String>>
Returns a list of installed applications that can handle this request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendLaunchRequest({AppControlReplyCallback? replyCallback}) Future<void>
Sends a launch request to an application.
sendTerminateRequest() Future<void>
Sends a terminate request to a running application.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

onAppControl Stream<ReceivedAppControl>
A stream of incoming application controls.
final

Static Methods

setAutoRestart(AppControl appControl) Future<void>
Enables the auto restart setting.
unsetAutoRestart() Future<void>
Disables the auto restart setting. See setAutoRestart for details.