Type Parameters

Constructors

Properties

_actor: any
_idlFactory: any
_agentManager: any
_unsubscribeAgent: any
_subscribers: any
canisterId: string
actorStore: types.ActorStore<A>
visitFunction: types.VisitService<A>
methodAttributes: types.MethodAttributes<A>
updateState: any
updateMethodState: ((method, hash, newState) => void)

Type declaration

initialize: ((options?) => Promise<void>)

Type declaration

extractInterface: (() => types.IDL.ServiceClass)

Type declaration

extractMethodAttributes: (() => types.MethodAttributes<A>)

Type declaration

extractVisitor: (() => types.VisitService<A>)

Type declaration

initializeActor: any
_getActorMethod: any
callMethod: (<M>(functionName, ...args) => Promise<types.ActorMethodReturnType<A[M]>>)

Type declaration

callMethodWithOptions: ((options) => (<M>(functionName, ...args) => Promise<types.ActorMethodReturnType<A[M]>>))

Type declaration

call: (<M>(functionName, ...args) => Promise<types.ActorMethodReturnType<A[M]>>)

Type declaration

getActor: (() => null | A)

Type declaration

    • (): null | A
    • Returns null | A

getState: (() => types.ActorState<A>)

Type declaration

subscribeActorState: {
    (listener): (() => void);
    <U>(selector, listener, options?): (() => void);
}

Type declaration

    • (listener): (() => void)
    • Parameters

      • listener: ((selectedState, previousSelectedState) => void)

      Returns (() => void)

        • (): void
        • Returns void

    • <U>(selector, listener, options?): (() => void)
    • Type Parameters

      • U

      Parameters

      • selector: ((state) => U)
      • listener: ((selectedState, previousSelectedState) => void)
          • (selectedState, previousSelectedState): void
          • Parameters

            • selectedState: U
            • previousSelectedState: U

            Returns void

      • Optional options: {
            equalityFn?: ((a, b) => boolean);
            fireImmediately?: boolean;
        }
        • Optional equalityFn?: ((a, b) => boolean)
            • (a, b): boolean
            • Parameters

              Returns boolean

        • Optional fireImmediately?: boolean

      Returns (() => void)

        • (): void
        • Returns void

setState: {
    (...a): void;
    (...a): void;
}

Type declaration

cleanup: (() => void)

Type declaration

    • (): void
    • Returns void

Accessors

  • get agentManager(): types.AgentManager
  • Returns types.AgentManager