sdk-core
Toggle table of contents
7.2.0
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
sdk-core
sdk-core
/
com.gigya.android.sdk.utils
/
UiUtils
Ui
Utils
open
class
UiUtils
Members
Constructors
Ui
Utils
Link copied to clipboard
constructor
(
)
Functions
dp
To
Pixel
Link copied to clipboard
open
fun
dpToPixel
(
dp
:
Float
,
context
:
Context
)
:
Float
Convert dp unit to equivalent pixels, depending on device density.
find
Activity
Link copied to clipboard
open
fun
findActivity
(
context
:
Context
)
:
Activity
get
Screen
Size
Link copied to clipboard
open
fun
getScreenSize
(
context
:
Activity
)
:
Pair
<
Integer
,
Integer
>
Get device screen size in pixels.
is
Portrait
Link copied to clipboard
open
fun
isPortrait
(
context
:
Context
)
:
Boolean
pixels
To
Dp
Link copied to clipboard
open
fun
pixelsToDp
(
px
:
Float
,
context
:
Context
)
:
Float
Convert device specific pixels to density independent pixels.
secure
Activity
Link copied to clipboard
open
fun
secureActivity
(
window
:
Window
)
Apply secure flag to given window (Activity).