🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

RemoteDensityBehavior

Density behavior for the RemoteCompose document.

Source set: Android
public enum class RemoteDensityBehavior(internal val value: Int) {
    /**
     * Legacy mode. Values are interpreted as pixels, but historically some layout properties might
     * have behaved differently.
     */
    Legacy(CoreDocument.DENSITY_BEHAVIOR_LEGACY),

    /** Values are interpreted as pixels. No density scaling is applied by the player. */
    Pixels(CoreDocument.DENSITY_BEHAVIOR_PIXELS),

    /** Values are interpreted as DP. Density scaling is applied by the player. */
    Dp(CoreDocument.DENSITY_BEHAVIOR_DP),
}

Density behavior for the RemoteCompose document.

Members

Legacy

Source set: Android
Legacy(CoreDocument.DENSITY_BEHAVIOR_LEGACY)

Legacy mode. Values are interpreted as pixels, but historically some layout properties might have behaved differently.

Pixels

Source set: Android
Pixels(CoreDocument.DENSITY_BEHAVIOR_PIXELS)

Values are interpreted as pixels. No density scaling is applied by the player.

Dp

Source set: Android
Dp(CoreDocument.DENSITY_BEHAVIOR_DP)

Values are interpreted as DP. Density scaling is applied by the player.

Content updated: