Package com.blukii.sdk.discovery
Class KeyData
java.lang.Object
com.blukii.sdk.discovery.KeyData
- All Implemented Interfaces:
android.os.Parcelable
Read only data set for blukii SmartKey
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<KeyData>
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Method Summary
Modifier and TypeMethodDescriptionint
getMode()
Gets the operating mode of the SmartKey that determines the security levelMODE_OFF
: no mode is configuredMODE_CONVENIENCE
: low security level; authentication via BLE device addressMODE_PAIRING
: medium security level; authentication via pairing keyMODE_SECURE
: high security level; authentication via AES128 encrypted key and pairing keyMODE_SECURE_PREPARED
: MODE_SECURE, pairing key is not yet setboolean
Gets the state if the SmartKey has been pushedboolean
Gets the state if the SmartKey has been time synced since last restartvoid
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
MODE_OFF
- See Also:
-
MODE_CONVENIENCE
- See Also:
-
MODE_PAIRING
- See Also:
-
MODE_SECURE_PREPARED
- See Also:
-
MODE_SECURE
- See Also:
-
CREATOR
-
-
Method Details
-
isTimeSync
public boolean isTimeSync()Gets the state if the SmartKey has been time synced since last restart- Returns:
- true, if SmartKey is time synced
-
getMode
Gets the operating mode of the SmartKey that determines the security levelMODE_OFF
: no mode is configuredMODE_CONVENIENCE
: low security level; authentication via BLE device addressMODE_PAIRING
: medium security level; authentication via pairing keyMODE_SECURE
: high security level; authentication via AES128 encrypted key and pairing keyMODE_SECURE_PREPARED
: MODE_SECURE, pairing key is not yet set
- Returns:
- operating mode string
-
isButtonPushed
public boolean isButtonPushed()Gets the state if the SmartKey has been pushedNote: only supported for blukiis with push button
- Returns:
- true, if SmartKey button is pushed
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-