Files
ft/Client/LocalPackages/TapjoySDK/Runtime/Tapjoy.iOS/Native/TapjoyConnectPlugin.h
2026-06-29 21:18:33 +08:00

47 lines
1.8 KiB
Objective-C

#import <Foundation/Foundation.h>
#import <Tapjoy/Tapjoy.h>
@interface TapjoyConnectPlugin : NSObject
{
// The amount of Tapjoy Managed currency this user has.
int tapPoints;
// The amount of Tapjoy Managed currency this user has earned since the app was last run.
int earnedCurrencyAmount;
// This is used for callbacks to managed code, after Tapjoy events are fired.
const char* gameObjectName;
NSMutableDictionary *cSharpDictionaryRefs_;
// Events
NSMutableDictionary *placementDict_;
NSMutableDictionary *placementDelegateDict_;
}
@property (nonatomic, copy) NSString *callbackHandlerName;
+ (TapjoyConnectPlugin*)sharedTapjoyConnectPlugin;
// Tapjoy Events
- (void)requestDidSucceed:(NSString*)guid withName:(NSString*)placementName withContent:(BOOL)contentIsAvailable;
- (void)requestDidFail:(NSString*)guid withName:(NSString*)placementName error:(NSError*)error;
- (void)contentIsReady:(NSString*)guid withName:(NSString*)placementName;
- (void)contentDidAppear:(NSString*)guid withName:(NSString*)placementName;
- (void)contentDidDisappear:(NSString*)guid withName:(NSString*)placementName;
// Offerwall Discover
- (void)offerwallDiscoverRequestDidSucceed;
- (void)offerwallDiscoverRequestDidFail:(NSError *)error;
- (void)offerwallDiscoverContentReady;
- (void)offerwallDiscoverContentError:(NSError *)error;
// Bridge methods between Objective-C and C#
- (void)setKey:(NSString*)key ToValue:(NSString*)value InDictionary:(NSString*)dictionaryToAddTo;
- (void)setKey:(NSString*)key ToDictionaryRefValue:(NSString*)dictionaryRefToAdd InDictionary:(NSString*)dictionaryToAddTo;
- (NSMutableDictionary*)getReferenceDictionary:(NSString*) dictionaryName;
- (NSMutableDictionary*)getReferenceDictionary:(NSString*) dictionaryName AndCreateNewInstance:(BOOL) newInstance;
@end