foo-webview-sdk
    Preparing search index...

    Function createOnSmp

    • Construct the fb.onSMP(name, callback) function bound to the provided bridge instance.

      Returns an unsubscribe callback. Special markers (on_focus / on_playlists_changed) are dispatched manually because they bind to multiple canonical events.

      Parameters

      • fb: SmpBridgeShape

      Returns (smpEventName: string, callback: SmpEventCallback) => () => void