getInstruction method
Gets the instruction to be given to the user for portrait capture.
return Instruction to be given to the user for portrait capture. throws FaceException An error has occurred during Face Library execution.
Implementation
PortraitInstruction getInstruction() {
Pointer<Int32> pInstruction = calloc();
try {
var err = faceSDK.id3FacePortrait_GetInstruction(_pHandle.value, pInstruction);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vInstruction = PortraitInstructionX.fromValue(pInstruction.value);
return vInstruction;
} finally {
calloc.free(pInstruction);
}
}