BrazeViewBounds

Wrapper for the width x height of different views used in the Braze SDK. All dimensions are in dp units.

Entries

Link copied to clipboard

Width: See https://android.googlesource.com/platform/frameworks/base/+/6675721/packages/SystemUI/res/layout/system_bar_notification_panel.xml Height: See https://android.googlesource.com/platform/frameworks/base/+/6387d2f6dae27ba6e8481883325adad96d3010f4/core/res/res/layout/notification_template_big_picture.xml

Link copied to clipboard

Width: https://developer.android.com/reference/android/R.dimen.html#notification_large_icon_width Height: https://developer.android.com/reference/android/R.dimen.html#notification_large_icon_height

Link copied to clipboard
Link copied to clipboard

Since the size of the image in an in-app message can be overridden, we double the bounds here to not over sample the image if the modal is larger than the default values found in BrazeInAppMessageParams. For in-app messages that expand to the full width/height of the screen, we'll just let them be as large as possible.

Link copied to clipboard

Used when the view doesn't have any bounds defined, such as a view that expands to the width of the display.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard

Gets the height of the view in dp.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets the width of the view in dp.