isAvailable()

Use this function to determine whether DocumentScanner functionality is available.

None.

Returns true when used on a supported device, and false otherwise.

Use this function to disable or hide scan features on platforms where scanning isn’t supported. For example: