codemelted.js Module
    Preparing search index...

    Function ui_action

    • Provides the ability to carry out actions with the open browser window.

      Parameters

      • params: {
            data?: string | object;
            pattern?: number[];
            request: string;
            target_origin?: string;
            x?: number;
            y?: number;
        }

        The named parameters.

        • Optionaldata?: string | object

          The optional object data associated with the ACTION_REQUEST.Share or ACTION_REQUEST.PostMessage requests or string data for the ACTION_REQUEST.Copy option.

        • Optionalpattern?: number[]

          Provides a pattern of vibration and pause intervals. Each value indicates a number of milliseconds to vibrate or pause, in alternation.

        • request: string

          The enumerated value to carry out with the open browser window.

        • Optionaltarget_origin?: string

          Specifies the target origin when posting a message to a window or frame.

        • Optionalx?: number

          An X coordinate or delta coordinate for a given action that moves / sets position of the browser window or item on the browser window.

        • Optionaly?: number

          An X coordinate or delta coordinate for a given action that moves / sets position of the browser window or item on the browser window.

      Returns Promise<CResult<string | boolean | null>>

      Reflecting success or failure of the given request. A rejected promise is an API violation.

      // TBD