We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesAwareness Kitawareness.statusDetectedBehavior

DetectedBehavior

class info
public class DetectedBehavior implements Parcelable
Type and confidence of a detected behavior.

Public Constructor Summary

Constructor name
DetectedBehavior(int type, int confidence)
Constructs a detected behavior.

Public Method Summary

Return typeMethod name
intgetType()
intgetConfidence()

Public Constructors

constructor
public DetectedBehavior(int type, int confidence)
Constructs a detected behavior.

Parameters

Parameter nameParameter desc
typeDetected behavior.
confidenceConfidence, indicating the possibility that a user is executing the behavior. The value ranges from 0 to 100.

Public Methods

Method
public int getType()
Obtains the detected behavior type.

Return

Typedesc
intBehavior type. The value is one of the eight constant values defined in the BehaviorBarrier class.
Method
public int getConfidence()
Returns confidence that indicates the possibility that the user is executing the behavior. The value ranges from 0 to 100.
A larger confidence value indicates that a behavior of a user holding the device is more consistent with the detected behavior.
The value is less than or equal to 100. A larger value indicates that the detected behavior is likely to be correct, while a value less than or equal to 50 indicates that another behavior with similar or higher confidence may exist.
Multiple behaviors may have high confidence at the same time.

Return

Typedesc
intConfidence, indicating the possibility that a user is executing the behavior. The value ranges from 0 to 100.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.