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
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<KeyData>static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
Modifier and TypeMethodDescriptionintgetMode()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 setbooleanGets the state if the SmartKey has been pushedbooleanGets the state if the SmartKey has been time synced since last restartvoidwriteToParcel(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:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-