toggle menu
snabble Android SDK API Documentation
androidJvm
switch theme
search in API
utils
/
io.snabble.sdk.utils
/
Utils
Utils
open
class
Utils
Members
Constructors
Utils
Link copied to clipboard
constructor
(
)
Functions
dp2px
Link copied to clipboard
open
fun
dp2px
(
context
:
Context
,
dp
:
Float
)
:
Int
get
Activity
Link copied to clipboard
open
fun
getActivity
(
context
:
Context
)
:
Activity
get
App
Compat
Activity
Link copied to clipboard
open
fun
getAppCompatActivity
(
context
:
Context
)
:
AppCompatActivity
hex
String
Link copied to clipboard
open
fun
hexString
(
input
:
Array
<
Byte
>
)
:
String
is
Debug
Build
Link copied to clipboard
open
fun
isDebugBuild
(
context
:
Context
)
:
Boolean
px2dp
Link copied to clipboard
open
fun
px2dp
(
context
:
Context
,
px
:
Int
)
:
Float
sha1
Link copied to clipboard
open
fun
sha1
(
input
:
String
)
:
Array
<
Byte
>
sha1Hex
Link copied to clipboard
open
fun
sha1Hex
(
input
:
String
)
:
String
sha256
Link copied to clipboard
open
fun
sha256
(
input
:
String
)
:
Array
<
Byte
>
sha256Hex
Link copied to clipboard
open
fun
sha256Hex
(
input
:
String
)
:
String