API referenceVetraGlove ProJava (Android)

Bone configuration

Core interfaces

Current version · 2.0.0

BoneConfig

com.qnbot.sdk.glove.BoneConfig

Creates a bone-length measurement or exports a saved profile before SDK construction. Run these operations on a worker thread.

Omitting operatorId uses "default". Omitting interaction uses CaptureInteractionMode.AUTO_TERMINAL. Terminal mode presents the scan flow, waits for measurement and saves with REPLACE_EXISTING by default, then returns installed(). Its session is closed on success or failure. EXTERNAL immediately returns session(), whose presentation, polling, installation and closing belong to the app. Choose the external save policy at session.install().

BoneConfig.create

static BoneConfigCreationResult create(Context context, Side side)

BoneConfig.create

static BoneConfigCreationResult create(Context context, Side side, String operatorId)

BoneConfig.create

static BoneConfigCreationResult create(Context context, Side side, String operatorId, CaptureInteractionMode interaction)

BoneConfig.create

static BoneConfigCreationResult create(Context context, Side side, String operatorId, CaptureInteractionMode interaction, BoneConfigOverwritePolicy overwrite)

BoneConfig.exportFile

static Path exportFile(Context context, Path destination, Side side)

Exports the selected operator and hand profile to destination and returns its path. The default operator is "default" and the default destination policy is DENY. Select REPLACE_EXISTING explicitly to replace an export destination. Missing or invalid saved profiles produce an error. Export preserves the saved profile, and a failed write preserves an existing destination. The app handles copying to a document provider or sharing.

BoneConfig.exportFile

static Path exportFile(Context context, Path destination, Side side, String operatorId)

BoneConfig.exportFile

static Path exportFile(Context context, Path destination, Side side, String operatorId, BoneConfigOverwritePolicy overwrite)

BoneConfigCreationResult

com.qnbot.sdk.glove.BoneConfigCreationResult

Use installed() for AUTO_TERMINAL and session() for EXTERNAL. Calling an accessor for the other mode throws IllegalStateException.

Field
final CaptureInteractionMode interaction

BoneConfigCreationResult.installed

BoneConfigInstallResult installed()

BoneConfigCreationResult.session

BoneConfigSession session()

BoneConfigSession

com.qnbot.sdk.glove.BoneConfigSession

For external interaction, info() returns the phone link and operator, poll() reports submission, and install() saves the result. After COMPLETED, install() defaults to REPLACE_EXISTING for the same operator and hand. Pass DENY explicitly to reject an existing profile. Failed validation or saving preserves the previous profile. Keep the session open until installation, cancel an abandoned measurement and always close the session. Perform blocking calls on a worker thread.

BoneConfigSession.info

BoneConfigSessionInfo info()

BoneConfigSession.poll

BoneConfigSessionStatus poll()

BoneConfigSession.install

BoneConfigInstallResult install()

BoneConfigSession.install

BoneConfigInstallResult install(BoneConfigOverwritePolicy overwrite)

BoneConfigSession.cancel

void cancel()

BoneConfigSession.close

void close()

BoneConfigSessionInfo

com.qnbot.sdk.glove.BoneConfigSessionInfo

Field / enum value
final String sessionId
final String phoneUrl
final String operatorId
final Side side
final String expiresAt
final long pollIntervalSeconds
final long remainingSeconds

BoneConfigSessionStatus

com.qnbot.sdk.glove.BoneConfigSessionStatus

Field / enum value
PENDING / COMPLETED

BoneConfigInstallResult

com.qnbot.sdk.glove.BoneConfigInstallResult

Field / enum value
final Path path
final String operatorId
final Side side
final boolean cleanupConfirmed

BoneConfigOverwritePolicy

com.qnbot.sdk.glove.BoneConfigOverwritePolicy

Field / enum value
DENY / REPLACE_EXISTING