|
PPIDCardSDK Penpower
|
繼承自 UIView.
實體方法 | |
| (instancetype) | - initWithFrame:signature: |
| (void) | - switchToFrontCamera: |
| (void) | - torchTurnOn: |
| (void) | - focusWithPoint: |
| (void) | - capture |
| (void) | - restart |
| 重新開始偵測 | |
| (void) | - borderWithColor:width:cornerRadius: |
屬性(properties) | |
| id< PPIDCardCaptureViewDelegate > | delegate |
| 代理 | |
| PPIDCardType | cardType |
| 證件種類,預設為身份證。 | |
| BOOL | enableFaceDetection |
| 駕照是否開啟人臉偵測,預設為開啟。 | |
| PPIDCardSide | captureSide |
| 偵測到正面或反面時進行拍照 | |
| UIInterfaceOrientation | previewOrientation |
| camera影像顯示方向,預設為UIInterfaceOrientationPortrait。當parentView方向改變時才需調整。 | |
| - (void) borderWithColor: | (UIColor *) | color | |
| width: | (CGFloat) | width | |
| cornerRadius: | (CGFloat) | cornerRadius | |
| - (void) capture |
| - (void) focusWithPoint: | (CGPoint) | viewPoint |
| - (instancetype) initWithFrame: | (CGRect) | frame | |
| signature: | (NSString *) | signature | |
PPIDCardCaptureView initialize method
| frame | View frame |
| signature | Signature from Penpower |
| - (void) switchToFrontCamera: | (BOOL) | toFrontCamera |
切換到前鏡頭
| toFrontCamera | YES前鏡頭;NO後鏡頭 |
由 PPIDCardCaptureView(SingleAuto) 分類所提供.
| - (void) torchTurnOn: | (BOOL) | turnOn |