@ NonNull public synchronized static BluetoothLeScannerCompat getScanner ( ) { if ( instance != null ) return instance ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . O ) return instance = new BluetoothLeScannerImplOreo ( ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) return instance = new BluetoothLeScannerImplMarshmallow ( ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) return instance = new BluetoothLeScannerImplLollipop ( ) ; return instance = new BluetoothLeScannerImplJB ( ) ; }
Returns the scanner compat object