Swift example
  • 24 Dec 2024
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Swift example

  • Sombre
    Lumière
  • PDF

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

// AppDelegate.swift

import UIKit
import ShieldSDK

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, PRMShieldEventDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        PRMShieldEventManager.shared().addObserver(observer: self)
        return true
    }

    func jailbreakStatus(status isJailbroken: Bool) {
        if isJailbroken {
            handleDeviceIsJailbroken()
        }
    }

    func screenshotDetected() {
        handleScreenshotDetected()
    }
}


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

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