foo-webview-sdk
    Preparing search index...

    Interface PlaylistAutoplaylistUIResultPayload

    Payload of the playlist:autoplaylistUIResult event. An accepted native autoplaylist editor call returned or failed. Sent at most once per operation, only to its original document; navigation or destruction discards delivery. success reports the native call, not saved changes, cancellation, or the editor's lifetime.

    interface PlaylistAutoplaylistUIResultPayload {
        code?: string;
        error?: string;
        operationId: string;
        playlistGuid: string;
        reason?:
            | "noEditor"
            | "notAutoplaylist"
            | "targetGone"
            | "queryFailed"
            | "dispatchFailed"
            | "providerFailed";
        success: boolean;
    }
    Index
    code?: string

    Business error code; present only when success is false.

    error?: string

    Present only on failure, together with code and reason.

    operationId: string

    The same opaque identifier as the acceptance response, used to match this operation.

    playlistGuid: string

    Unique identifier of the playlist, formatted as {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}. Pass as playlistGuid to reliably target this playlist.

    reason?:
        | "noEditor"
        | "notAutoplaylist"
        | "targetGone"
        | "queryFailed"
        | "dispatchFailed"
        | "providerFailed"

    The failed check or native-call stage; present only when success is false.

    success: boolean

    Whether the native call returned normally; a lock entry must also return true.