ActionManager

This type was introduced in Unity Action QML API 1.0.

Properties

Methods

Detailed Description

ActionManager exports the application actions to the external components. See Platform Integration and Action Contexts for more details.

Property Documentation

actions : list<Action>

List of Actions in manager's globalContext.

This is the default property of ActionManager.


globalContext : ActionContext

The globalContext of the Application.

Note: Setting the ActionContext::active on the global context has no effect;


localContexts : list<ActionContext>

List of localContexts.


Method Documentation

ActionManager::addAction( action)

this is a shorthand for

manager.globalContext.addAction(action);

See also ActionContext::addAction().


ActionManager::addLocalContext( context)

Adds a local context.

Calling this function multiple times with the same context does not have any side effects; the context gets added only once.


ActionManager::removeAction( action)

this is a shorthand for

manager.globalContext.removeAction(action);

See also ActionContext::removeAction().


ActionManager::removeLocalContext( context)

Removes a local context.

Calling this function multiple times with the same context does not have any side effects; the context gets removed only if it was previously added with addLocalContext().