Triggering callbacks
- 17 Jan 2025
- 1 Minute à lire
- SombreLumière
- PDF
Triggering callbacks
- Mis à jour le 17 Jan 2025
- 1 Minute à lire
- SombreLumière
- PDF
The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article
Avez-vous trouvé ce résumé utile ?
Merci pour vos commentaires
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 ?