ToastParams()
Useful to parameterize toast messages
ToastParams():setOpacity()
You can set the transparency level of the toast using this method (0.0 to 1.0)
ToastParams():getOpacity()
Will return the current opacity level
ToastParams():setDuration()
You can set how long the toast is visible in milliseconds
ToastParams():getDuration()
Will return the duration of the toast
ToastParams():setPosition()
You can set the position of the toast on the screen using x and y coordinates
ToastParams():getPosition()
Will return the current position of the toast as a Point object
ToastParams():setTextColor()
You can set the text color of the toast (e.g., "#FF0000" or "#AARRGGBB")
ToastParams():getTextColor()
Will return the current text color string
ToastParams():setPadding()
You can set custom padding for the toast content
ToastParams():getPadding()
Will return the current padding as an array of numbers [left, top, right, bottom]
ToastParams():setRadius()
You can set the corner radius of the toast background
ToastParams():getRadius()
Will return the current corner radius