From Bright Pattern Documentation
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 >