Objective-C example
  • 24 Dec 2024
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Objective-C example

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

#import "AppDelegate.h"
#import <ShieldSDK/Shield.h>

@interface AppDelegate () <PRMShieldEventDelegate>
@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [[PRMShieldEventManager sharedManager] addObserver:self];
    
    if (!@available(iOS 16, *)) {
        NSLog(@"%@", @"Developer mode status checking unavailable pre-iOS 16.");
    }
    
    return YES;
}

- (void)jailbreakStatus:(BOOL)isJailbroken {
    if (isJailbroken) {
        [self handleDeviceIsJailbroken];
    }
}

- (void)screenshotDetected {
    [self handleScreenshotDetected];
}

@end


Cet article vous a-t-il été utile ?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle