-
public final class DeviceModel extends Model<DeviceModel.Data>
Represents the device model that collects and exposes device-related data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDeviceModel.Companionpublic interfaceDeviceModel.SettingsThe settings of the device model.
public final classDeviceModel.ConfigConfiguration class for customizing the device model. All properties are enabled by default.
public final classDeviceModel.DataData class representing the device model data.
This class holds various information about a device and its environment, including device ID, screen details, and OS information.
-
Field Summary
Fields Modifier and Type Field Description private final DeviceModel.Settingssettings
-
Method Summary
Modifier and Type Method Description final DeviceModel.SettingsgetSettings()Unitinitialize(ModelContext modelContext)Sets up the model with the specified ModelContext. DeviceModel.Dataget(ModelContext modelContext)Retrieves the data associated with this model. -
-
Method Detail
-
getSettings
final DeviceModel.Settings getSettings()
-
initialize
Unit initialize(ModelContext modelContext)
Sets up the model with the specified ModelContext.
This method can be overridden by subclasses to perform initialization or setup tasks specific to the model.
- Parameters:
modelContext- The context in which the model is being set up.
-
get
DeviceModel.Data get(ModelContext modelContext)
Retrieves the data associated with this model.
- Parameters:
modelContext- The context in which the data is being retrieved.
-
-
-
-