[AppDelegate application:didFinishLaunchingWithOptions:]:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {NSString * const licenceURL = @"<The license URL obtained>";NSString * const licenceKey = @"<The key obtained>";// `V2TXLivePremier` is in the header file `V2TXLivePremier.h`.[V2TXLivePremier setLicence:licenceURL key:licenceKey];[V2TXLivePremier setObserver:self];NSLog(@"SDK Version = %@", [V2TXLivePremier getSDKVersionStr]);return YES;}#pragma mark - V2TXLivePremierObserver- (void)onLicenceLoaded:(int)result Reason:(NSString *)reason {NSLog(@"onLicenceLoaded: result:%d reason:%@", result, reason);}@end
application:public class MApplication extends Application {@Overridepublic void onCreate() {super.onCreate();String licenceURL = ""; // The license URL obtainedString licenceKey = ""; // The license key obtainedV2TXLivePremier.setLicence(this, licenceURL, licenceKey);V2TXLivePremier.setObserver(new V2TXLivePremierObserver() {@Overridepublic void onLicenceLoaded(int result, String reason) {Log.i(TAG, "onLicenceLoaded: result:" + result + ", reason:" + reason);}});}
NSLog(@"%@", [TXLiveBase getLicenceInfo]);
TXLiveBase.getInstance().getLicenceInfo();
[AppDelegate application:didFinishLaunchingWithOptions:]:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {NSString * const licenceURL = @"<The license URL obtained>";NSString * const licenceKey = @"<The key obtained>";// `TXUGCBase` is in the header file `TXUGCBase.h`.[TXUGCBase setLicenceURL:licenceURL key:licenceKey];NSLog(@"SDK Version = %@", [TXUGCBase getSDKVersionStr]);return YES;}- (void)onLicenceLoaded:(int)result Reason:(NSString *)reason {NSLog(@"onLicenceLoaded: result:%d reason:%@", result, reason);}@end
public class MApplication extends Application {@Overridepublic void onCreate() {super.onCreate();String licenceURL = ""; // The license URL obtainedString licenceKey = ""; // The license key obtainedTXUGCBase.getInstance().setLicence(this, licenceURL, licenceKey);TXUGCBase.setListener(new TXUGCBaseListener() {@Overridepublic void onLicenceLoaded(int result, String reason) {Log.i(TAG, "onLicenceLoaded: result:" + result + ", reason:" + reason);}});}}
NSLog(@"%@", [TXUGCBase getLicenceInfo]);
TXUGCBase.getInstance().getLicenceInfo(context);
피드백