KRunnerPlugin class

A Dart interface for creating and running a KRunner plugin.

Constructors

KRunnerPlugin({required String identifier, required String name, required Future<List<QueryMatch>> matchQuery(String), required Future<List<SecondaryAction>> retrieveActions(), required Future<void> runAction({required String actionId, required String matchId})})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier String
A unique reverse-domain identifier for this runner.
final
matchQuery Future<List<QueryMatch>> Function(String)
KRunner sends a query as a String when the user is typing, asking for a return of any possible matches.
final
name String
A name for this runner.
final
retrieveActions Future<List<SecondaryAction>> Function()
Return a list of secondary actions this runner can perform.
final
runAction Future<void> Function({required String actionId, required String matchId})
KRunner has requested to run an action on a match.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init() Future<void>
Start the runner and listen for queries.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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