A11 TypeScript API - v0.7.26
A11 guides
Python API
C++ internals
Preparing search index...
ActionRegistry
Class ActionRegistry
Convenient access to the registry owned by one initialized runtime.
Index
Constructors
constructor
Methods
get
Schema
is
Registered
list
Registered
Actions
make
Action
make
Action
Message
register
unregister
Constructors
constructor
new
ActionRegistry
(
runtime
:
A11Runtime
)
:
ActionRegistry
Parameters
runtime
:
A11Runtime
Returns
ActionRegistry
Methods
get
Schema
getSchema
(
name
:
string
)
:
Promise
<
StatusOr
<
ActionSchema
>
>
Parameters
name
:
string
Returns
Promise
<
StatusOr
<
ActionSchema
>
>
is
Registered
isRegistered
(
name
:
string
)
:
Promise
<
StatusOr
<
boolean
>
>
Parameters
name
:
string
Returns
Promise
<
StatusOr
<
boolean
>
>
list
Registered
Actions
listRegisteredActions
()
:
Promise
<
StatusOr
<
string
[]
>
>
Returns
Promise
<
StatusOr
<
string
[]
>
>
make
Action
makeAction
(
name
:
string
,
options
?:
MakeActionOptions
,
)
:
Promise
<
StatusOr
<
GraphAction
>
>
Parameters
name
:
string
options
:
MakeActionOptions
= {}
Returns
Promise
<
StatusOr
<
GraphAction
>
>
make
Action
Message
makeActionMessage
(
name
:
string
,
actionId
?:
string
,
)
:
Promise
<
StatusOr
<
ActionMessage
>
>
Parameters
name
:
string
Optional
actionId
:
string
Returns
Promise
<
StatusOr
<
ActionMessage
>
>
register
register
(
name
:
string
,
schema
:
ActionSchema
,
handler
?:
ActionHandler
|
null
,
)
:
Promise
<
Status
>
Parameters
name
:
string
schema
:
ActionSchema
handler
:
ActionHandler
|
null
= null
Returns
Promise
<
Status
>
unregister
unregister
(
name
:
string
)
:
Promise
<
Status
>
Parameters
name
:
string
Returns
Promise
<
Status
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Schema
is
Registered
list
Registered
Actions
make
Action
make
Action
Message
register
unregister
A11 guides
Python API
C++ internals
A11 TypeScript API - v0.7.26
Loading...
Convenient access to the registry owned by one initialized runtime.