52 lines
2.0 KiB
Java
52 lines
2.0 KiB
Java
|
package com.kofax.kmc.kui.uicontrols.captureanimations;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import com.kofax.mobile.sdk._internal.capture.CaptureMessage;
|
||
|
import com.kofax.mobile.sdk._internal.impl.view.aa;
|
||
|
import com.kofax.mobile.sdk.ak.e;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class LicenseOverlayView extends aa implements ILicenseOverlayView {
|
||
|
@InterfaceC13391fZD
|
||
|
public LicenseOverlayView(Context context) {
|
||
|
super(context);
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.mobile.sdk._internal.impl.view.aa
|
||
|
public void initMessages(Context context) {
|
||
|
super.initMessages(context);
|
||
|
setInstructionMsg(new com.kofax.mobile.sdk._internal.capture.CaptureMessage());
|
||
|
getInstructionMsg().setTextColor(-1);
|
||
|
getInstructionMsg().setBackgroundColor(0);
|
||
|
getInstructionMsg().setMessage(e.b(getContext(), "cap_guide_license_user_instruction"));
|
||
|
getInstructionMsg().setTextSize(18);
|
||
|
getInstructionMsg().setOrientation(CaptureMessage.KUIMessageOrientation.PORTRAIT);
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.kui.uicontrols.captureanimations.ILicenseOverlayView
|
||
|
public void init() {
|
||
|
this._capturedImageView.getView().setVisibility(4);
|
||
|
this._circleAnimationView.getView().setVisibility(4);
|
||
|
this._documentOverlayFrameView.setGuidanceFrameColor(0);
|
||
|
this._debugView.getView().setVisibility(4);
|
||
|
setOverlayAspectRatio(1.0d);
|
||
|
showUserInstructionMessage();
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.kui.uicontrols.captureanimations.ILicenseOverlayView
|
||
|
public CaptureMessage getUserInstructionMessage() {
|
||
|
return new CaptureMessage(getInstructionMsg());
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.kui.uicontrols.captureanimations.ILicenseOverlayView
|
||
|
public void setUserInstructionMessage(CaptureMessage captureMessage) {
|
||
|
setInstructionMsg(captureMessage.mM);
|
||
|
}
|
||
|
|
||
|
@Override // com.kofax.kmc.kui.uicontrols.captureanimations.ILicenseOverlayView
|
||
|
public void showUserInstructionMessage() {
|
||
|
showFitWithinFrameMessage(true);
|
||
|
}
|
||
|
}
|