ExtensionFunctionKt

public final class ExtensionFunctionKt

Properties

Link copied to clipboard
private final static Map<ActiveFaceCaptureStateName, Integer> activeFaceCaptureTextMap

Get the resource id for the string for an active capture state name

Link copied to clipboard
private final static Set<ActiveFaceCaptureStateName> checkHeadPose

Set of states that should show center face message based on the current head pose (if the pose is not normal)

Link copied to clipboard
private final static Map<HeadPose, Integer> currentHeadPoseInstructionsMap

Get the resource id for the string for a head pose

Link copied to clipboard
private final static Set<ActiveFaceCaptureStateName> shouldCenter

Set of states where the user is expected to center their face and have their face in a normal pose in the center of the camera, and at an appropriate distance from the camera

Link copied to clipboard
private final static Set<ActiveFaceCaptureStateName> showCurrentHeadPose

Set of states that should show center face message based on the current head pose (regardless of the pose)

Link copied to clipboard
private final static Map<ActiveFaceCaptureStateName, Pair<String, ActiveFaceCaptureStateName>> stateResources

Map of animation resources for each active face capture state

Functions

Link copied to clipboard
public final static HashMap<String, String> convertToHashMap(Map<String, String> data)

Convert map to hash map

Link copied to clipboard
public final static List<Pair<String, String>> convertToMutableList(HashMap<String, String> data)

Convert hash map to mutable list

Link copied to clipboard
public final Map<ActiveFaceCaptureStateName, Integer> getActiveFaceCaptureTextMap()

Get the resource id for the string for an active capture state name

Link copied to clipboard
public final Set<ActiveFaceCaptureStateName> getCheckHeadPose()

Set of states that should show center face message based on the current head pose (if the pose is not normal)

Link copied to clipboard
public final Map<HeadPose, Integer> getCurrentHeadPoseInstructionsMap()

Get the resource id for the string for a head pose

Link copied to clipboard
public final static Integer getDesiredMarginTop(Context context)

Slight adjustment to the margin top for tablets

Link copied to clipboard
public final static Integer getScreenHeight()

Get the screen height in pixels

Link copied to clipboard
public final static Integer getScreenWidth()

Get the screen width in pixels

Link copied to clipboard
public final static T getSerializable<T extends Serializable>(Intent $self, String key, Class<T> mClass)

Get serializable extra from intent

Link copied to clipboard
public final Set<ActiveFaceCaptureStateName> getShouldCenter()

Set of states where the user is expected to center their face and have their face in a normal pose in the center of the camera, and at an appropriate distance from the camera

Link copied to clipboard
public final Set<ActiveFaceCaptureStateName> getShowCurrentHeadPose()

Set of states that should show center face message based on the current head pose (regardless of the pose)

Link copied to clipboard
public final Map<ActiveFaceCaptureStateName, Pair<String, ActiveFaceCaptureStateName>> getStateResources()

Map of animation resources for each active face capture state

Link copied to clipboard
public final static Unit ignoreTouch(View $self)

Apply window insets ignoring the top inset

Link copied to clipboard
public final static Boolean isTablet(Context $self)

Check if the device is a tablet

Link copied to clipboard
public final static Unit navigateToMainActivity(Context context)

Navigate to main activity

Link copied to clipboard
public final static String toSentenceCase(String $self)

Convert string to sentence case

Link copied to clipboard
public final static HashMap<String, String> toSerializable<K extends Any, V extends Any>(Map<K, V> $self)
Link copied to clipboard
public final static SpannableString underLine(String $self)

Underline the text