public enum BrazeViewBounds extends java.lang.Enum<BrazeViewBounds>
Enum Constant and Description |
---|
BASE_CARD_VIEW |
IN_APP_MESSAGE_MODAL
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 AppboyInAppMessageParams.
|
IN_APP_MESSAGE_SLIDEUP |
NO_BOUNDS
Used when the view doesn't have any bounds
defined, such as a view that expands to the
width of the display.
|
NOTIFICATION_EXPANDED_IMAGE
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
|
NOTIFICATION_INLINE_PUSH_IMAGE |
NOTIFICATION_LARGE_ICON
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
|
NOTIFICATION_ONE_IMAGE_STORY |
Modifier and Type | Method and Description |
---|---|
int |
getHeightDp()
Gets the height of the view in dp.
|
int |
getWidthDp()
Gets the width of the view in dp.
|
static BrazeViewBounds |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BrazeViewBounds[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrazeViewBounds NOTIFICATION_EXPANDED_IMAGE
public static final BrazeViewBounds NOTIFICATION_INLINE_PUSH_IMAGE
public static final BrazeViewBounds NOTIFICATION_LARGE_ICON
public static final BrazeViewBounds NOTIFICATION_ONE_IMAGE_STORY
public static final BrazeViewBounds BASE_CARD_VIEW
public static final BrazeViewBounds IN_APP_MESSAGE_MODAL
public static final BrazeViewBounds IN_APP_MESSAGE_SLIDEUP
public static final BrazeViewBounds NO_BOUNDS
public static BrazeViewBounds[] values()
for (BrazeViewBounds c : BrazeViewBounds.values()) System.out.println(c);
public static BrazeViewBounds valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getHeightDp()
public int getWidthDp()