toggle menu
hooks2
android
switch theme
search in API
hooks2
/
xyz.junerver.compose.hooks.usedeviceinfo
Package-level
declarations
Types
Functions
Types
Battery
Info
Link copied to clipboard
android
@
Stable
data
class
BatteryInfo
(
val
level
:
Int
=
-1
,
val
isCharging
:
Boolean
=
false
)
Build
Info
Link copied to clipboard
android
@
Stable
data
class
BuildInfo
(
val
brand
:
String
,
val
model
:
String
,
val
release
:
String
)
Screen
Info
Link copied to clipboard
android
@
Stable
data
class
ScreenInfo
(
val
screenDp
:
IntSize
,
val
screenPx
:
IntSize
,
val
density
:
Float
,
val
isLandscape
:
Boolean
)
Functions
use
Battery
Info
Link copied to clipboard
android
@
Composable
fun
useBatteryInfo
(
)
:
State
<
BatteryInfo
>
use
Build
Info
Link copied to clipboard
android
@
Composable
fun
useBuildInfo
(
)
:
BuildInfo
use
Screen
Info
Link copied to clipboard
android
@
Composable
fun
useScreenInfo
(
)
:
ScreenInfo