DeviceManager

open class DeviceManager

Class responsible for providing information about current user's device

Author

cerovec

Functions

Link copied to clipboard
open fun adjustZoomLevel(originalZoomLevel: Float): Float
Link copied to clipboard
Checks if device has a camera
Link copied to clipboard
@NonNull
open fun getAndroidRelease(): String
Obtains android release version.
Link copied to clipboard
@NonNull
open fun getAndroidVersion(): Version
Link copied to clipboard
Link copied to clipboard
@NonNull
open fun getContext(): Context
Context getter
Link copied to clipboard
@NonNull
open fun getDevice(): String
Obtains the device name
Link copied to clipboard
@NonNull
open fun getDeviceInfo(): DeviceInfo
Link copied to clipboard
@NonNull
open fun getInstance(): DeviceManager
Link copied to clipboard
@NonNull
open fun getManufacturer(): String
Obtains manufacturer of device
Link copied to clipboard
Link copied to clipboard
@NonNull
open fun getModel(): String
Obtains the device model
Link copied to clipboard
open fun getNumberOfCores(): Int
Link copied to clipboard
@NonNull
open fun getProcessorABI(): String
Returns the processor ABI version of the user's device
Link copied to clipboard
open fun getSdkVersion(): Int
Returns the API version of the OS that user's device runs
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method finds out if this device is supported
Link copied to clipboard
Checks if the current device has blacklisted setDisplayOrientation method.
Link copied to clipboard
Checks if the current device has untrusty autofocus callback, i.e.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setup(@NonNull context: Context, assetsRootFolder: String)
Link copied to clipboard