Foundry.IntentManager

g Foundry.Contextual Foundry.Contextual Foundry.Service Foundry.Service Foundry.Contextual->Foundry.Service Foundry.IntentManager Foundry.IntentManager Foundry.Service->Foundry.IntentManager GObject.GInterface GObject.GInterface Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Service (8), Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)

Structs:

Foundry.ServiceClass (3), GObject.ObjectClass (5)

dispatch (intent)

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5)

Properties

Inherited:

Foundry.Contextual (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.IntentManager(**kwargs)
Bases:

Foundry.Service

Abstract:

No

Structure:

Foundry.IntentManagerClass

The intent manager provides a generic mechanism to handle intents within an application.

This could include opening a file with the OpeFileIntent, or other custom intents.

[class`Foundry`.IntentHandler] may be registered to handle these intents or ignore them for the next handler to handle them.

New in version 1.1.

dispatch(intent)
Parameters:

intent (Foundry.Intent) – a [class`Foundry`.Intent]

Returns:

a [class`Dex`.Future] that resolves to any value if sucessful or rejects with error.

Return type:

Dex.Future

Dispatch the intent to the first handler which can handle it.

New in version 1.1.