From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19


getPhoneDevicesList

Returns an array of available phone devices for selection.

Request

Syntax

getPhoneDevicesList(): Promise<OperationResult<PhoneDevice[]>>


Where:

type PhoneDevice =

    "phone_type_browser" |

    "phone_type_external" |

    "phone_type_hard_custom" |

    "phone_type_hard_default" |

    "phone_type_nailed" |

    "phone_type_none" |

    "phone_type_soft_secure" |

    "phone_type_soft_unsecure"


Parameters

(None)

Example Request

getPhoneDevicesListButton.onclick = () => {

    adApi.getPhoneDevicesList()

}

Return Value

This method returns a list of available PhoneDevice types.

< Previous | Next >