Example
GitHub
Preparing search index...
The search index is not available
ic-reactor
ic-reactor
react
types
ActorManager
Class ActorManager<A>
Type Parameters
A
=
types
.
BaseActor
Index
Constructors
constructor
Properties
_actor
_idl
Factory
_agent
Manager
_unsubscribe
Agent
_subscribers
canister
Id
actor
Store
visit
Function
method
Attributes
update
State
update
Method
State
initialize
extract
Interface
extract
Method
Attributes
extract
Visitor
initialize
Actor
_get
Actor
Method
call
Method
call
Method
With
Options
get
Actor
get
State
subscribe
Actor
State
set
State
cleanup
Accessors
agent
Manager
Constructors
constructor
new
Actor
Manager
<
A
>
(
actorConfig
)
:
types
.
ActorManager
<
A
>
Type Parameters
A
=
types
.
BaseActor
Parameters
actorConfig
:
types
.
ActorManagerParameters
Returns
types
.
ActorManager
<
A
>
Properties
Private
_actor
_actor
:
any
Private
_idl
Factory
_idl
Factory
:
any
Private
_agent
Manager
_agent
Manager
:
any
Private
_unsubscribe
Agent
_unsubscribe
Agent
:
any
Private
_subscribers
_subscribers
:
any
canister
Id
canister
Id
:
string
actor
Store
actor
Store
:
types
.
ActorStore
<
A
>
visit
Function
visit
Function
:
types
.
VisitService
<
A
>
method
Attributes
method
Attributes
:
types
.
MethodAttributes
<
A
>
Private
update
State
update
State
:
any
update
Method
State
update
Method
State
:
(
(
method
,
hash
,
newState
)
=>
void
)
Type declaration
(
method
,
hash
,
newState
)
:
void
Parameters
method
:
Extract
<
keyof
A
,
string
>
hash
:
string
newState
:
Partial
<
{
data
:
undefined
|
types
.
ActorMethodReturnType
<
A
[
Extract
<
keyof
A
,
string
>
]
>
;
loading
:
boolean
;
error
:
undefined
|
Error
;
}
>
Returns
void
initialize
initialize
:
(
(
options
?
)
=>
Promise
<
void
>
)
Type declaration
(
options
?
)
:
Promise
<
void
>
Parameters
Optional
options
:
types
.
UpdateAgentParameters
Returns
Promise
<
void
>
extract
Interface
extract
Interface
:
(
(
)
=>
types
.
IDL
.
ServiceClass
)
Type declaration
(
)
:
types
.
IDL
.
ServiceClass
Returns
types
.
IDL
.
ServiceClass
extract
Method
Attributes
extract
Method
Attributes
:
(
(
)
=>
types
.
MethodAttributes
<
A
>
)
Type declaration
(
)
:
types
.
MethodAttributes
<
A
>
Returns
types
.
MethodAttributes
<
A
>
extract
Visitor
extract
Visitor
:
(
(
)
=>
types
.
VisitService
<
A
>
)
Type declaration
(
)
:
types
.
VisitService
<
A
>
Returns
types
.
VisitService
<
A
>
Private
initialize
Actor
initialize
Actor
:
any
Private
_get
Actor
Method
_get
Actor
Method
:
any
call
Method
call
Method
:
(
<
M
>
(
functionName
,
...
args
)
=>
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
)
Type declaration
<
M
>
(
functionName
,
...
args
)
:
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
Type Parameters
M
extends
string
Parameters
functionName
:
M
Rest
...
args
:
types
.
ActorMethodParameters
<
A
[
M
]
>
Returns
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
call
Method
With
Options
call
Method
With
Options
:
(
(
options
)
=>
(
<
M
>
(
functionName
,
...
args
)
=>
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
)
)
Type declaration
(
options
)
:
(
<
M
>
(
functionName
,
...
args
)
=>
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
)
Parameters
options
:
utils
.
agent
.
CallConfig
Returns
(
<
M
>
(
functionName
,
...
args
)
=>
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
)
<
M
>
(
functionName
,
...
args
)
:
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
Type Parameters
M
extends
string
Parameters
functionName
:
M
Rest
...
args
:
types
.
ActorMethodParameters
<
A
[
M
]
>
Returns
Promise
<
types
.
ActorMethodReturnType
<
A
[
M
]
>
>
get
Actor
get
Actor
:
(
(
)
=>
null
|
A
)
Type declaration
(
)
:
null
|
A
Returns
null
|
A
get
State
get
State
:
(
(
)
=>
types
.
ActorState
<
A
>
)
Type declaration
(
)
:
types
.
ActorState
<
A
>
Returns
types
.
ActorState
<
A
>
subscribe
Actor
State
subscribe
Actor
State
:
(
(
listener
)
=>
(
(
)
=>
void
)
)
Type declaration
(
listener
)
:
(
(
)
=>
void
)
Parameters
listener
:
(
(
state
,
prevState
)
=>
void
)
(
state
,
prevState
)
:
void
Parameters
state
:
types
.
ActorState
<
A
>
prevState
:
types
.
ActorState
<
A
>
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
set
State
set
State
:
NamedSet
<
types
.
ActorState
<
A
>
>
cleanup
cleanup
:
(
(
)
=>
void
)
Type declaration
(
)
:
void
Returns
void
Accessors
agent
Manager
get
agentManager
(
)
:
types
.
AgentManager
Returns
types
.
AgentManager
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_actor
_idl
Factory
_agent
Manager
_unsubscribe
Agent
_subscribers
canister
Id
actor
Store
visit
Function
method
Attributes
update
State
update
Method
State
initialize
extract
Interface
extract
Method
Attributes
extract
Visitor
initialize
Actor
_get
Actor
Method
call
Method
call
Method
With
Options
get
Actor
get
State
subscribe
Actor
State
set
State
cleanup
agent
Manager
ic-reactor
Loading...