IPProximityViewController
public class IPProximityViewController : UIViewController, ProximityDelegate
View controller used to detect proximity when it is required by an Authentication Request.
A custom UI can be provided by creating a nib file containing an IPProximityViewController
and set the values of IPAuthenticationViewController.proximityBundleIdentifier
and IPAuthenticationViewController.proximityNibName
.
-
The delegate that receives face detection events
Declaration
Swift
@IBInspectable public var proximityDelegate: IPProximityViewControllerDelegate?
-
The id of the proximity service
Declaration
Swift
public var serviceID: String
-
Creates an ACProximityViewController, which is used to process a proximity authentication request. If bundleIndentifier and nibName are nil, IAMPASS’ default proximity view cotroller is created. By specifiying these values you can override the appearance of the proximity view controller in your application. To do this create a new ViewController in Interface Builder and set the Class and Module properties in the Identity Inspector. Then set
IPAuthenticationViewController.proximityBundleIdentifier
andIPAuthenticationViewController.proximityNibName
of yourIPAuthenticationViewController
.Declaration
Swift
public init?(delegate: IPProximityViewControllerDelegate, bundleIdentifier: String?, nibName: String?)
Parameters
delegate
IPProximityViewControllerDelegate called when the proximity authentication step has been completed.
bundleIndentifier
String? The bundle in which to search for the nib file.