libresound_js_libs
    Preparing search index...

    Class MusicPlayerClass

    The class to interact with the app

    Index

    Constructors

    Properties

    _actions: any
    _funcsManager: FuncsManager = ...
    downloader: Downloader = downloader
    helpers: Helpers = ...
    logger: Logger = ...
    playback: Playback = ...
    propertyStorage: PropertyStorage = ...
    queue: Queue = ...
    runtime: Runtime = ...
    settings: {
        logger: Logger;
        setControls(
            controls: (
                | {
                    hintText?: string;
                    id: string;
                    initial?: string;
                    label?: string;
                    maxWidth?: number;
                    onChanged?: $InferOuterFunctionType<
                        ZodTuple<readonly [ZodString], null>,
                        ZodVoid,
                    >;
                    type: "textInput";
                }
                | {
                    elements: [string?, string?, ...unknown[]][];
                    id: string;
                    initial: string;
                    onChanged?: $InferOuterFunctionType<
                        ZodTuple<readonly [ZodString], null>,
                        ZodVoid,
                    >;
                    type: "selectInput";
                }
                | {
                    elements: [string?, string?, ...unknown[]][];
                    id: string;
                    initial: string;
                    onChanged?: $InferOuterFunctionType<
                        ZodTuple<readonly [ZodString], null>,
                        ZodVoid,
                    >;
                    type: "radioGroupInput";
                }
                | {
                    id: string;
                    initial: boolean;
                    onChanged?: $InferOuterFunctionType<
                        ZodTuple<readonly [ZodBoolean], null>,
                        ZodVoid,
                    >;
                    text?: string;
                    type: "checkboxInput" | "switchInput";
                }
                | { fontSize?: number; text: string; type: "text" }
                | { height?: number; type: "space"; width?: number }
            )[],
        ): void;
    } = ...
    source: Source = ...

    Methods

    • Parameters

      • mi: {
            album: { id?: string; title: string };
            artist: { id?: string; title: string };
            downloaderType: DownloaderType;
            duration: number;
            extension: string;
            id: string;
            subtitle: string;
            thumbnailUrl: string;
            title: string;
        }

      Returns Promise<void>

    • Shows actions dialog

      Parameters

      • actions: {
            callback: $InferOuterFunctionType<ZodTuple<readonly [], null>, ZodVoid>;
            icon?: IconName;
            text: string;
        }[]
      • tapPos: number[] = null

      Returns void

    • Updates app state. Use this method to update UI after changing app state.

      Returns void