Class KtpSessionsParam
java.lang.Object
glair.vision.model.param.sessions.BaseSessionsParam
glair.vision.model.param.sessions.KtpSessionsParam
Represents the parameters for a KTP (Kartu Tanda Penduduk) session.
This class extends the
BaseSessionsParam class to include additional options.-
Constructor Summary
ConstructorsConstructorDescriptionKtpSessionsParam(String successUrl) Constructs a KtpSessionsParam instance with the specified success URL. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the image should be checked for quality during the KTP session.voidsetQualitiesDetector(boolean qualitiesDetector) Sets whether the image should be checked for quality during the KTP session.toString()Returns a JSON representation of the KTP session parameters.Methods inherited from class glair.vision.model.param.sessions.BaseSessionsParam
getCancelUrl, getSuccessUrl, setCancelUrl
-
Constructor Details
-
KtpSessionsParam
Constructs a KtpSessionsParam instance with the specified success URL.- Parameters:
successUrl- The URL to redirect to upon successful session completion.
-
-
Method Details
-
getQualitiesDetector
public boolean getQualitiesDetector()Gets whether the image should be checked for quality during the KTP session.- Returns:
- True if the image quality check is enabled, false otherwise.
-
setQualitiesDetector
public void setQualitiesDetector(boolean qualitiesDetector) Sets whether the image should be checked for quality during the KTP session.- Parameters:
qualitiesDetector- If set to true, the image will be checked for quality. The default value is false.
-
toString
Returns a JSON representation of the KTP session parameters.- Overrides:
toStringin classBaseSessionsParam- Returns:
- A JSON string representing the session parameters.
-