ScanException


class ScanException : BluetoothException

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalStateException
           ↳ java.util.concurrent.CancellationException
             ↳ androidx.bluetooth.BluetoothException
               ↳ androidx.bluetooth.ScanException

Summary

Constants

const Int

Fails to start scan as app cannot be registered.

const Int

Fails to start scan due an internal error.

const Int

Fails to start scan as it is out of hardware resources.

const Int

Fails to start scan as application tries to scan too frequently.

const Int
UNSUPPORTED = 10203

Fails to start power optimized scan as this feature is not supported.

Public constructors

ScanException(errorCode: Int)

Public properties

open Int

the error code for indicating the reason why the exception is thrown

Inherited properties

From kotlin.Throwable

Constants

APPLICATION_REGISTRATION_FAILED

const val APPLICATION_REGISTRATION_FAILED = 10201: Int

Fails to start scan as app cannot be registered.

INTERNAL_ERROR

const val INTERNAL_ERROR = 10202: Int

Fails to start scan due an internal error.

OUT_OF_HARDWARE_RESOURCES

const val OUT_OF_HARDWARE_RESOURCES = 10204: Int

Fails to start scan as it is out of hardware resources.

SCANNING_TOO_FREQUENTLY

const val SCANNING_TOO_FREQUENTLY = 10205: Int

Fails to start scan as application tries to scan too frequently.

UNSUPPORTED

const val UNSUPPORTED = 10203: Int

Fails to start power optimized scan as this feature is not supported.

Public constructors

ScanException

Added in 1.0.0-alpha02
ScanException(errorCode: Int)

Public properties

errorCode

open val errorCodeInt

the error code for indicating the reason why the exception is thrown