Hubro Connect
Toggle table of contents
android
Platform filter
android
Switch theme
Search in API
Hubro Connect
hubro-connect
/
no.hubroplatform.hubroconnect
/
AndroidSensorManager
Android
Sensor
Manager
android
class
AndroidSensorManager
(
context
:
Context
)
:
SensorManager
,
KoinComponent
Members
Constructors
Android
Sensor
Manager
Link copied to clipboard
android
constructor
(
context
:
Context
)
Functions
get
Current
Location
Link copied to clipboard
android
suspend
fun
getCurrentLocation
(
)
:
Location
?
get
Koin
Link copied to clipboard
android
open
fun
getKoin
(
)
:
Koin
get
Sensor
Identifier
Link copied to clipboard
android
open
override
fun
getSensorIdentifier
(
)
:
String
is
Available
Link copied to clipboard
android
open
override
fun
isAvailable
(
)
:
Result
<
Boolean
>
is
Revoke
Authorization
Supported
Link copied to clipboard
android
open
suspend override
fun
isRevokeAuthorizationSupported
(
)
:
Result
<
Boolean
>
read
Latest
Data
Link copied to clipboard
android
open
suspend override
fun
readLatestData
(
type
:
SensorDataType
)
:
Result
<
SensorMeasurement
?
>
request
Authorization
Link copied to clipboard
android
open
suspend override
fun
requestAuthorization
(
)
:
Result
<
Boolean
>
revoke
Authorization
Link copied to clipboard
android
open
suspend override
fun
revokeAuthorization
(
)
:
Result
<
Unit
>
start
Recording
Link copied to clipboard
android
open
suspend override
fun
startRecording
(
type
:
List
<
SensorDataType
>
)
:
Boolean
stop
Recording
Link copied to clipboard
android
open
suspend override
fun
stopRecording
(
)
:
Boolean