Class

RemoteDensityBehavior

Density behavior for the RemoteCompose document.

Source set: JvmAndAndroid
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: JvmAndAndroid
Legacy(CoreDocument.DENSITY_BEHAVIOR_LEGACY)

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

Pixels

Source set: JvmAndAndroid
Pixels(CoreDocument.DENSITY_BEHAVIOR_PIXELS)

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

Dp

Source set: JvmAndAndroid
Dp(CoreDocument.DENSITY_BEHAVIOR_DP)

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: