DeviceProperties

@RequiresApi(21) abstract class DeviceProperties
kotlin.Any
   ↳ androidx.camera.core.impl.DeviceProperties

Container of the device properties.

Summary

Public constructors

Container of the device properties.

Public methods
open static DeviceProperties

Creates an instance by querying the properties from android.os.Build.

open static DeviceProperties
create(@NonNull manufacturer: String, @NonNull model: String, sdkVersion: Int)

Creates an instance from the given properties.

abstract String

Returns the manufacturer of the device.

abstract String

Returns the model of the device.

abstract Int

Returns the SDK version of the OS running on the device.

Public constructors

DeviceProperties

DeviceProperties()

Container of the device properties.

Public methods

create

@NonNull open static fun create(): DeviceProperties

Creates an instance by querying the properties from android.os.Build.

create

@NonNull open static fun create(
    @NonNull manufacturer: String,
    @NonNull model: String,
    sdkVersion: Int
): DeviceProperties

Creates an instance from the given properties.

manufacturer

@NonNull abstract fun manufacturer(): String

Returns the manufacturer of the device.

model

@NonNull abstract fun model(): String

Returns the model of the device.

sdkVersion

abstract fun sdkVersion(): Int

Returns the SDK version of the OS running on the device.