How to use LAContext 's touchIDAuthenticationAllowableReuseDuration property?

ساخت وبلاگ

Vote count: 0

in LAContext.h

/// @discussion This property can be set with a time interval in seconds. If the device was successfully unlocked by Touch ID within this time interval, then Touch ID authentication on this context will succeed automatically and the reply block will be called without prompting user for Touch ID.The default value is 0, meaning that no previous TouchID authentication can be reused.The maximum supported interval is 5 minutes and setting the value beyond 5 minutes does not increase the accepted interval.

@property (nonatomic) NSTimeInterval touchIDAuthenticationAllowableReuseDuration NS_AVAILABLE_IOS(9_0);

But When I Use this property has no effect

  • (void)viewDidLoad { [super viewDidLoad];

    self.transitioningDelegate = self; self.modalPresentationStyle = UIModalPresentationCustom;

    self.context.touchIDAuthenticationAllowableReuseDuration = 5;

    [self authenticationWithtouchID];

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(15 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self authenticationWithtouchID]; }); }

after 15 second,Ther context's TouchID still authentication can be Available

whats wrong????

asked 1 min ago

- - , .

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 403 تاريخ : پنجشنبه 29 بهمن 1394 ساعت: 13:13