Triggering callbacks
  • 17 Jan 2025
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Triggering callbacks

  • Sombre
    Lumière
  • PDF

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

For debugging purposes, each callback can be manually triggered using singleton methods of the PRMShieldEventManager class. In Objective-C, this looks like the following example:

#import <ShieldSDK/ShieldEventManager+TriggerEvent.h>

#ifdef DEBUG
PRMShieldEventManager *manager = [PRMShieldEventManager sharedManager];
[manager triggerJailbreakStatus:YES afterDelay:2];
#endif

In Swift, triggers are used in the following manner:

import ShieldSDK

#if DEBUG
PRMShieldEventManager.shared.triggerJailbreakStatus(true, afterDelay: 2)
#endif

In both examples, the jailbreakStatus callback is triggered with a status of true (i.e., the device is jailbroken) after a delay of two seconds. To immediately trigger the callback, set afterDelay to 0.


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