react-native-firework-sdk
    Preparing search index...

    Interface IStoryBlockMethods

    interface IStoryBlockMethods {
        onViewportEntered: () => void;
        onViewportLeft: () => void;
        openFullscreen: () => void;
        pause: () => void;
        play: () => void;
    }
    Index

    Properties

    onViewportEntered: () => void

    Triggered when the story block enters the viewport. It is recommended to call this method when the host app detects scroll events. Only supported on iOS. Android automatically handles visibility detection during scrolling, so this API is only available on iOS.

    onViewportLeft: () => void

    Triggered when the story block leaves the viewport. It is recommended that the host app is triggered when listening for scrolling. Only supported on iOS. Android automatically handles visibility detection during scrolling, so this API is only available on iOS.

    openFullscreen: () => void

    Open the fullscreen story block.

    pause: () => void

    Pause the story block.

    play: () => void

    Play the story block.