ModalBottomSheetProperties


Properties used to customize the behavior of a ModalBottomSheet.

Summary

Public constructors

ModalBottomSheetProperties(
    securePolicy: SecureFlagPolicy,
    isFocusable: Boolean,
    shouldDismissOnBackPress: Boolean
)

This function is deprecated. 'isFocusable' param is no longer used.

android
ModalBottomSheetProperties(
    shouldDismissOnBackPress: Boolean,
    isAppearanceLightStatusBars: Boolean,
    isAppearanceLightNavigationBars: Boolean
)
Cmn
android
ModalBottomSheetProperties(
    securePolicy: SecureFlagPolicy,
    shouldDismissOnBackPress: Boolean,
    isAppearanceLightStatusBars: Boolean,
    isAppearanceLightNavigationBars: Boolean
)
android

Public functions

open operator Boolean
equals(other: Any?)
android
open Int
android

Public properties

Boolean
Cmn
android
Boolean
Cmn
android
SecureFlagPolicy

Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the bottom sheet's window.

android
Boolean
Cmn
android

Public constructors

ModalBottomSheetProperties

ModalBottomSheetProperties(
    securePolicy: SecureFlagPolicy,
    isFocusable: Boolean,
    shouldDismissOnBackPress: Boolean
)

ModalBottomSheetProperties

ModalBottomSheetProperties(
    shouldDismissOnBackPress: Boolean = true,
    isAppearanceLightStatusBars: Boolean = true,
    isAppearanceLightNavigationBars: Boolean = true
)
Parameters
shouldDismissOnBackPress: Boolean = true

Whether the modal bottom sheet can be dismissed by pressing the back button. If true, pressing the back button will call onDismissRequest.

isAppearanceLightStatusBars: Boolean = true

If true, changes the foreground color of the status bars to light so that the items on the bar can be read clearly. If false, reverts to the default appearance.

isAppearanceLightNavigationBars: Boolean = true

If true, changes the foreground color of the navigation bars to light so that the items on the bar can be read clearly. If false, reverts to the default appearance.

ModalBottomSheetProperties

ModalBottomSheetProperties(
    securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit,
    shouldDismissOnBackPress: Boolean = true,
    isAppearanceLightStatusBars: Boolean = true,
    isAppearanceLightNavigationBars: Boolean = true
)
Parameters
securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit

Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the bottom sheet's window.

shouldDismissOnBackPress: Boolean = true

Whether the modal bottom sheet can be dismissed by pressing the back button. If true, pressing the back button will call onDismissRequest.

isAppearanceLightStatusBars: Boolean = true

If true, changes the foreground color of the status bars to light so that the items on the bar can be read clearly. If false, reverts to the default appearance.

isAppearanceLightNavigationBars: Boolean = true

If true, changes the foreground color of the navigation bars to light so that the items on the bar can be read clearly. If false, reverts to the default appearance.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

isAppearanceLightNavigationBars

val isAppearanceLightNavigationBarsBoolean

isAppearanceLightStatusBars

val isAppearanceLightStatusBarsBoolean

securePolicy

val securePolicySecureFlagPolicy

Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the bottom sheet's window.

shouldDismissOnBackPress

val shouldDismissOnBackPressBoolean