MethodChannelAppIntents class
An implementation of AppIntentsPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AppIntentsPlatform
- MethodChannelAppIntents
Constructors
- MethodChannelAppIntents()
- Constructor that sets up the method call handler.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
-
onIntentExecution
→ Stream<
IntentExecutionRequest> -
A stream of intent execution requests from the native platform.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Disposes the stream controller.
-
getPlatformVersion(
) → Future< String?> -
Returns the current platform version.
override
-
handleEntityQuery(
String entityIdentifier, List< String> identifiers) → Future<List< Map< >String, dynamic> > - Queries entities using the registered handler.
-
handleIntentExecution(
String identifier, Map< String, dynamic> params) → Future<Map< String, dynamic> > - Executes the registered handler for the given intent.
-
handleSuggestedEntitiesQuery(
String entityIdentifier) → Future< List< Map< >String, dynamic> > - Gets suggested entities using the registered handler.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerEntityQueryHandler(
String entityIdentifier, EntityQueryHandler handler) → void -
Registers a handler for querying entities by their identifiers.
override
-
registerIntentHandler(
String identifier, IntentHandler handler) → void -
Registers a handler for the specified intent.
override
-
registerSuggestedEntitiesHandler(
String entityIdentifier, SuggestedEntitiesHandler handler) → void -
Registers a handler for providing suggested/default entities.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited