Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Threema/ThreemaFramework/Message/EncoderDecoder/   (Threema ©)  Datei vom 26.9.2026 mit Größe 509 B image not shown  

SSL KKPasscodeLock.h   Interaktion und
PortierbarkeitC

 

//
// Copyright 2011-2012 Kosher Penguin LLC
// Created by Adar Porat (https://github.com/aporat) on 1/16/2012.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

#define KKPasscodeLockLocalizedString(key, comment) [[KKPasscodeLock sharedLock] localizedStringForKey:(key) value:@""]

#import <Foundation/Foundation.h>
#import "KKPasscodeViewController.h"


@interface KKPasscodeLock : NSObject {
    
    // whatever the erase option is enabled in the passcode settings
 BOOL _eraseOption;
    
    // how many attemepts is user is allowed to have before the screen is locked
 NSUInteger _attemptsAllowed;
}

/**
 * a shared object which can change the passcode settings and perform generic actions
 */

+ (KKPasscodeLock*)sharedLock;

/**
 * checks if a passcode has to be displayed
 */

- (BOOL)isPasscodeRequired;

- (BOOL)isWithinGracePeriod;

- (void)disablePasscode;

- (BOOL)isTouchIdOn NS_SWIFT_NAME(isTouchIDOn());

/**
 * returns a localized string from the framework's bundle
 */

- (NSString *)localizedStringForKey:(NSString *)key value:(NSString *)value NS_FORMAT_ARGUMENT(1);

/**
 * set the initial settings of the passcode settings
 */

- (void)setDefaultSettings;

- (void)upgradeAccessibility;

- (void)updateLastUnlockTime;

@property (nonatomic,assign) BOOL eraseOption;

@property (nonatomic,assign) NSUInteger attemptsAllowed;

@property (nonatomic,assign) time_t lastUnlockTime;

@end

Messung
CHZG
1001009999

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.1Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-23) ¤

*Eine klare Vorstellung vom Zielzustand