|
PPIDCardSDK Penpower
|
實體方法 | |
| (void) | - switchToFrontCamera: |
| (void) | - torchTurnOn: |
| (void) | - focusWithPoint: |
| (void) | - capture |
| (void) | - restart |
| 重新開始偵測 | |
| (void) | - borderWithColor:width:cornerRadius: |
屬性(properties) | |
| PPIDCardSide | captureSide |
| 偵測到正面或反面時進行拍照 | |
| UIInterfaceOrientation | previewOrientation |
| camera影像顯示方向,預設為UIInterfaceOrientationPortrait。當parentView方向改變時才需調整。 | |
| - (void) borderWithColor: | (UIColor *) | color | |
| width: | (CGFloat) | width | |
| cornerRadius: | (CGFloat) | cornerRadius | |
設定外框
| color | 顏色 |
| width | 線寬 |
| cornerRadius | 圓角 |
| - (void) capture |
手動拍照
| - (void) focusWithPoint: | (CGPoint) | viewPoint |
對焦
| viewPoint | 對焦點座標 (PPIDCardCaptureView座標系) |
| - (void) switchToFrontCamera: | (BOOL) | toFrontCamera |
切換到前鏡頭
| toFrontCamera | YES前鏡頭;NO後鏡頭 |
| - (void) torchTurnOn: | (BOOL) | turnOn |
手電筒開關
| turnOn | 開啟 |