sender-sdk
androidJvm
sender-sdk
/
tv.vizbee.sdkutils
/
UiUtils
Ui
Utils
open
class
UiUtils
Members
Constructors
Ui
Utils
Link copied to clipboard
constructor
(
)
Functions
alpha
Color
Link copied to clipboard
open
fun
alphaColor
(
percentAlpha
:
Double
,
oldColor
:
Int
)
:
Int
capture
View
Hierarchy
Link copied to clipboard
@
Nullable
open
fun
captureViewHierarchy
(
@
Nullable
activity
:
Activity
)
:
Bitmap
get
Device
Instance
Thumbnail
Resource
Link copied to clipboard
open
fun
getDeviceInstanceThumbnailResource
(
device
:
DeviceInstance
)
:
Int
get
Device
Selector
Color
Link copied to clipboard
@
ColorRes
open
fun
getDeviceSelectorColor
(
device
:
DeviceInstance
)
:
Int
get
Image
Async
Link copied to clipboard
open
fun
getImageAsync
(
v
:
ImageView
,
url
:
String
)
open
fun
getImageAsync
(
url
:
String
,
callback
:
ICommandCallback
<
Bitmap
>
)
is
Landscape
Link copied to clipboard
open
fun
isLandscape
(
context
:
Context
)
:
Boolean
is
Phone
Link copied to clipboard
open
fun
isPhone
(
context
:
Context
)
:
Boolean
is
Portrait
Link copied to clipboard
open
fun
isPortrait
(
context
:
Context
)
:
Boolean
is
Tablet
Link copied to clipboard
open
fun
isTablet
(
context
:
Context
)
:
Boolean
resolve
Alpha
From
Attr
Link copied to clipboard
open
fun
resolveAlphaFromAttr
(
context
:
Context
,
alpha
:
Int
)
:
Int
resolve
Boolean
From
Attr
Link copied to clipboard
open
fun
resolveBooleanFromAttr
(
context
:
Context
,
attr
:
Int
)
:
Boolean
resolve
Color
From
Attr
Link copied to clipboard
open
fun
resolveColorFromAttr
(
context
:
Context
,
attr
:
Int
)
:
Int
resolve
Drawable
From
Attr
Link copied to clipboard
open
fun
resolveDrawableFromAttr
(
context
:
Context
,
drawable
:
Int
)
:
Drawable
tint
Drawable
Link copied to clipboard
open
fun
tintDrawable
(
context
:
Context
,
drawable
:
Drawable
,
attr
:
Int
)
open
fun
tintDrawable
(
context
:
Context
,
drawable
:
Drawable
,
attr
:
Int
,
alpha
:
Int
)
Properties
DEFAULT_SAMPLE_DIMEN
Link copied to clipboard
val
DEFAULT_SAMPLE_DIMEN
:
Int
=
300