Lines Matching refs:self
37 self.authorizeSlider.continuous = YES;
38 [self setSliderThumbImage:OFF_SWITCH_IMAGE_NAME];
39 FRAIdentity *identity = self.notification.parent.parent;
40 [FRAUIUtils setImage:self.image fromIssuerLogoURL:identity.image];
41 self.image.layer.cornerRadius = self.image.frame.size.width / 2;
42 self.image.clipsToBounds = YES;
43 self.message.text = [NSString stringWithFormat:@"Log in to %@", identity.issuer];
44 [FRAUIUtils setView:self.backgroundView issuerBackgroundColor:identity.backgroundColor];
46 if ([self isTouchIDEnabled]) {
47 [self layoutViewForTouchID];
48 [self authenticateUsingTouchID];
50 [self layoutViewForSlider];
58 if (![self isSliderAtEndOfTrack]) {
59 [self setSliderThumbImage:OFF_SWITCH_IMAGE_NAME];
61 [self setSliderThumbImage:ON_SWITCH_IMAGE_NAME];
66 [self setSliderThumbImage:OFF_SWITCH_IMAGE_NAME];
67 [self moveSliderToStartOfTrack];
71 if ([self isSliderAtEndOfTrack]) {
72 [self approveNotification];
74 [self moveSliderToStartOfTrack];
79 [self dismissNotification];
86 [self.authorizeSlider setThumbImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
90 return (self.authorizeSlider.value == self.authorizeSlider.maximumValue);
94 [self.authorizeSlider setValue:self.authorizeSlider.minimumValue animated:YES];
98 self.authorizeSlider.userInteractionEnabled = NO;
99 self.denyButton.userInteractionEnabled = NO;
101 if (![self.notification approveWithHandler:[self approveDismissNotificationCallbackWithTitle:NSLocalizedString(@"notification_approval_error_title", nil)] error:&error]) {
102 [self showAlertWithTitle:NSLocalizedString(@"notification_approval_error_title", nil)
105 [self dismissViewControllerAnimated:YES completion:nil];
109 self.authorizeSlider.userInteractionEnabled = NO;
110 self.denyButton.userInteractionEnabled = NO;
112 if (![self.notification denyWithHandler:[self approveDismissNotificationCallbackWithTitle:NSLocalizedString(@"notification_dismissal_error_title", nil)] error:&error]) {
113 [self showAlertWithTitle:NSLocalizedString(@"notification_dismissal_error_title", nil)
116 [self dismissViewControllerAnimated:YES completion:nil];
120 LAContext *authContext = [self.authContextFactory newLAContext];
126 FRAIdentity *identity = self.notification.parent.parent;
129 LAContext *authContext = [self.authContextFactory newLAContext];
137 [self approveNotification];
141 [self dismissNotification];
160 [self showAlertWithTitle:title message:NSLocalizedString(@"notification_error_network_failure_message", nil)];
166 [self hideControls:YES];
167 [self.backgroundView removeConstraints:self.backgroundView.constraints];
169 constraintWithItem:self.image
172 toItem:self.view
177 constraintWithItem:self.image
180 toItem:self.backgroundView
185 constraintWithItem:self.backgroundView
188 toItem:self.view
192 [self.view addConstraint:imageCenterX];
193 [self.view addConstraint:imageCenterY];
194 [self.view addConstraint:backgroundViewBottom];
198 [self hideControls:NO];
202 self.authorizeSlider.hidden = hide;
203 self.denyButton.hidden = hide;
204 self.message.hidden = hide;