-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a6646f
commit 18f2e4c
Showing
23 changed files
with
218 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// FSSMaio.h | ||
// FluctSDK | ||
// | ||
// Copyright © 2024 fluct, Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <Maio/Maio.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@protocol FSSMaioProtocol | ||
|
||
- (void)load:(NSString *)zoneId | ||
testMode:(BOOL)testMode | ||
loadCallback:(nullable id<MaioRewardedLoadCallback>)loadCallback; | ||
|
||
- (void)show:(UIViewController *)viewController | ||
showCallback:(nullable id<MaioRewardedShowCallback>)showCallback; | ||
|
||
@end | ||
|
||
@interface FSSMaio : NSObject <FSSMaioProtocol> | ||
|
||
- (void)load:(NSString *)zoneId | ||
testMode:(BOOL)testMode | ||
loadCallback:(nullable id<MaioRewardedLoadCallback>)loadCallback; | ||
|
||
- (void)show:(UIViewController *)viewController | ||
showCallback:(nullable id<MaioRewardedShowCallback>)showCallback; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// FSSMaio.m | ||
// FluctSDK | ||
// | ||
// Copyright © 2024 fluct, Inc. All rights reserved. | ||
// | ||
|
||
#import "FSSMaio.h" | ||
|
||
@interface FSSMaio () <FSSMaioProtocol, MaioRewardedLoadCallback> | ||
|
||
@property (nonatomic) MaioRewarded *rewardedVideo; | ||
@end | ||
|
||
@implementation FSSMaio | ||
|
||
- (void)load:(NSString *)zoneId | ||
testMode:(BOOL)testMode | ||
loadCallback:(nullable id<MaioRewardedLoadCallback>)loadCallback { | ||
MaioRequest *maioRequest = [[MaioRequest alloc] initWithZoneId:zoneId testMode:testMode]; | ||
self.rewardedVideo = [MaioRewarded loadAdWithRequest:maioRequest callback:loadCallback]; | ||
} | ||
|
||
- (void)show:(UIViewController *)viewController | ||
showCallback:(nullable id<MaioRewardedShowCallback>)showCallback { | ||
[self.rewardedVideo showWithViewContext:viewController callback:showCallback]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.