braze-android-sdk
24.3.0
braze-android-sdk
/
com.braze.ui.inappmessage.utils
/
InAppMessageViewUtils
In
App
Message
View
Utils
object
InAppMessageViewUtils
Functions
Functions
close
In
App
Message
On
Keycode
Back
Link copied to clipboard
@
JvmStatic
fun
closeInAppMessageOnKeycodeBack
(
)
reset
Message
Margins
If
Necessary
Link copied to clipboard
@
JvmStatic
fun
resetMessageMarginsIfNecessary
(
messageView
:
TextView
?
,
headerView
:
TextView
?
)
set
Drawable
Color
Link copied to clipboard
@
JvmStatic
fun
setDrawableColor
(
drawable
:
Drawable
,
@
ColorInt
color
:
Int
)
set
Frame
Color
Link copied to clipboard
@
JvmStatic
fun
setFrameColor
(
view
:
View
,
color
:
Int
?
)
set
Icon
Link copied to clipboard
@
JvmStatic
fun
setIcon
(
context
:
Context
,
icon
:
String
?
,
iconColor
:
Int
,
iconBackgroundColor
:
Int
,
textView
:
TextView
)
set
Image
Link copied to clipboard
@
JvmStatic
fun
setImage
(
bitmap
:
Bitmap
?
,
imageView
:
ImageView
)
set
Text
Alignment
Link copied to clipboard
@
JvmStatic
fun
setTextAlignment
(
textView
:
TextView
,
textAlign
:
TextAlign
)
set
Text
View
Color
Link copied to clipboard
@
JvmStatic
fun
setTextViewColor
(
textView
:
TextView
,
color
:
Int
)
set
View
Background
Color
Link copied to clipboard
@
JvmStatic
fun
setViewBackgroundColor
(
view
:
View
,
color
:
Int
)
set
View
Background
Color
Filter
Link copied to clipboard
@
JvmStatic
fun
setViewBackgroundColorFilter
(
view
:
View
,
@
ColorInt
color
:
Int
)