THEOplayer React Native Connectors
    Preparing search index...

    Interface EngageClient

    Dispatches events that are fired.

    interface EngageClient {
        addEventListener<TType extends Error>(
            type: TType | readonly TType[],
            listener: EventListener<EngageEventMap[TType]>,
        ): void;
        clearCluster(type: ClusterType): void;
        destroy(): void;
        getCluster(type: ClusterType, config?: ClusterConfig): Cluster;
        removeEventListener<TType extends Error>(
            type: TType | readonly TType[],
            listener: EventListener<EngageEventMap[TType]>,
        ): void;
        setSignInEntity(entity?: SignIn): void;
        setSubscription(
            accountProfile: AccountProfile,
            subscription?: Subscription,
        ): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Clears and unpublishes a cluster by type.

      Parameters

      • type: ClusterType

        cluster type, either "Continuation", "Recommendation" or "Featured".

      Returns void

    • Set or update the subscription information whenever the user performs one of the following actions:

      • Log in to your app;
      • If your app supports single account with multiple profiles, user switches between profiles;
      • Purchase a new subscription;
      • Upgrades an existing subscription;
      • Existing user subscription or tiered subscription expires.

      Parameters

      Returns void