DeviceQuirks

public class DeviceQuirks


Provider of device specific quirks, which are used for device specific workarounds.

Device specific quirks depend on device properties, including the manufacturer (MANUFACTURER), model (MODEL) and OS level (SDK_INT).

Device specific quirks are lazily loaded, i.e. They are loaded the first time they're needed.

Summary

Public methods

static @Nullable T
<T extends Quirk> get(@NonNull Class<@NonNull T> quirkClass)

Retrieves a specific device Quirk instance given its type.

Public methods

get

@Nullable
@NonNull
public static T <T extends Quirk> get(@NonNull Class<@NonNull T> quirkClass)

Retrieves a specific device Quirk instance given its type.

Parameters
@NonNull Class<@NonNull T> quirkClass

The type of device quirk to retrieve.

Returns
T

A device Quirk instance of the provided type, or {@code null} if it isn't found.