ModalBottomSheetProperties


Properties used to customize the behavior of a ModalBottomSheet.

Summary

Public constructors

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

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

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

Properties used to customize the behavior of a ModalBottomSheet.

android

Public functions

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

Public properties

SecureFlagPolicy
android
Boolean
Cmn
android

Public constructors

ModalBottomSheetProperties

ModalBottomSheetProperties()

ModalBottomSheetProperties

ModalBottomSheetProperties(shouldDismissOnBackPress: 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.

ModalBottomSheetProperties

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

ModalBottomSheetProperties

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

ModalBottomSheetProperties

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

Properties used to customize the behavior of a ModalBottomSheet.

Parameters
isAppearanceLightStatusBars: Boolean

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

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.

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.

Public functions

equals

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

hashCode

open fun hashCode(): Int

Public properties

securePolicy

val securePolicySecureFlagPolicy

shouldDismissOnBackPress

val shouldDismissOnBackPressBoolean