本文整理汇总了Java中org.robovm.apple.uikit.UIApplication类的典型用法代码示例。如果您正苦于以下问题:Java UIApplication类的具体用法?Java UIApplication怎么用?Java UIApplication使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UIApplication类属于org.robovm.apple.uikit包,在下文中一共展示了UIApplication类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching (UIApplication app, UIApplicationLaunchOptions launchOpts) {
// create a full-screen window
CGRect bounds = UIScreen.getMainScreen().getBounds();
UIWindow window = new UIWindow(bounds);
// configure and create the PlayN platform
RoboPlatform.Config config = new RoboPlatform.Config();
config.orients = UIInterfaceOrientationMask.All;
RoboPlatform plat = RoboPlatform.create(window, config);
// create and initialize our game
new Drop(plat);
// make our main window visible (this starts the platform)
window.makeKeyAndVisible();
addStrongRef(window);
return true;
}
示例2: ResourceManager
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
protected ResourceManager() {
this.xmlCache = XMLCache.getSharedInstance();
this.resourceIdentifierCache = new HashMap<>();
NSNotificationCenter.getDefaultCenter().addObserver(this,
Selector.register("didReceiveMemoryWarning:"),
UIApplication.DidReceiveMemoryWarningNotification(), null);
}
示例3: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {
boolean retValue = super.didFinishLaunching(application, launchOptions);
Gdx.app.setApplicationLogger(new IOS_ApplicationLogger());
return retValue;
}
示例4: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching (UIApplication app, UIApplicationLaunchOptions launchOpts) {
// create a full-screen window
CGRect bounds = UIScreen.getMainScreen().getBounds();
UIWindow window = new UIWindow(bounds);
// create and initialize the PlayN platform
RoboPlatform.Config config = new RoboPlatform.Config();
config.orients = UIInterfaceOrientationMask.All;
RoboPlatform pf = RoboPlatform.create(window, config);
addStrongRef(pf);
final Showcase game = new Showcase(pf, new Showcase.DeviceService() {
public String info () {
UIDevice device = UIDevice.getCurrentDevice();
return "iOS [model=" + device.getModel() +
", os=" + device.getSystemName() + "/" + device.getSystemVersion() +
", name=" + device.getName() +
", orient=" + device.getOrientation() + "]";
}
});
pf.orient.connect(new Slot<RoboOrientEvent>() {
public void onEmit (RoboOrientEvent event) {
if (event instanceof RoboOrientEvent.DidRotate) {
game.rotate.emit(game);
}
}
});
// make our main window visible (the platform starts when the window becomes viz)
window.makeKeyAndVisible();
addStrongRef(window);
return true;
}
示例5: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching(UIApplication application,
UIApplicationLaunchOptions launchOptions) {
// Bmob.registerWithAppKey("34b7704a3b372576a732b7675abce9e8");
// showInterAd();
boolean is = super.didFinishLaunching(application, launchOptions);
// add();
youmi();
return is;
}
示例6: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching(UIApplication application,
UIApplicationLaunchOptions launchOptions) {
// Bmob.registerWithAppKey("34b7704a3b372576a732b7675abce9e8");
// showInterAd();
boolean is = super.didFinishLaunching(application, launchOptions);
// add();
//youmi();
domob();
return is;
}
示例7: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching(UIApplication application,
UIApplicationLaunchOptions launchOptions) {
MobClick.startWithAppkey("your key", ReportPolicy.BATCH, "ios");
MobClickGameAnalytics.pay(100, 1, 200);
MobClickGameAnalytics.buy("xxoo", 1, 100);
MobClickGameAnalytics.use("xxoo", 1, 100);
MobClickGameAnalytics.startLevel("1");
MobClickGameAnalytics.finishLevel("1");
MobClickGameAnalytics.failLevel("1");
final NSDictionary<NSString, NSString> dic = new NSDictionary<NSString, NSString>();
dic.setAssociatedObject(new NSString("1"), new NSString("1"));
dic.setAssociatedObject(new NSString("2"), new NSString("2"));
MobClickSocialWeibo weibo = new MobClickSocialWeibo(
MobClickSocialWeibo.MobClickSocialTypeSina(), "xxxxxxxooooo",
"12345", dic);
List<MobClickSocialWeibo> weibos = new ArrayList<MobClickSocialWeibo>();
weibos.add(weibo);
MobClickSocialAnalytics.postWeiboCounts(weibos, "your key", "测试", null);
return super.didFinishLaunching(application, launchOptions);
}
示例8: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching(UIApplication application,
UIApplicationLaunchOptions launchOptions) {
// Bmob.registerWithAppKey("34b7704a3b372576a732b7675abce9e8");
// showInterAd();
boolean is = super.didFinishLaunching(application, launchOptions);
/*
* MobClick.startWithAppkey("your key", ReportPolicy.BATCH, "ios");
*
* MobClickGameAnalytics.pay(100, 1, 200);
* MobClickGameAnalytics.buy("xxoo", 1, 100);
* MobClickGameAnalytics.use("xxoo", 1, 100);
*
* MobClickGameAnalytics.startLevel("1");
* MobClickGameAnalytics.finishLevel("1");
* MobClickGameAnalytics.failLevel("1");
*
* final NSDictionary<NSString, NSString> dic = new
* NSDictionary<NSString, NSString>(); dic.setAssociatedObject(new
* NSString("1"), new NSString("1")); dic.setAssociatedObject(new
* NSString("2"), new NSString("2"));
*
* MobClickSocialWeibo weibo = new MobClickSocialWeibo(
* MobClickSocialWeibo.MobClickSocialTypeSina(), "xxxxxxxooooo",
* "12345", dic); List<MobClickSocialWeibo> weibos = new
* ArrayList<MobClickSocialWeibo>(); weibos.add(weibo);
*
* MobClickSocialAnalytics.postWeiboCounts(weibos, "your key", "测试",
* null);
*/
return is;
}
示例9: login
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public void login() {
if (isSignedIn) {
return;
}
if (gcManager == null) {
gcManager = new GameCenterManager(UIApplication.getSharedApplication().getKeyWindow(), this);
}
gcManager.login();
}
示例10: didFinishLaunching
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
@Override
public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {
// Set up the view controller.
rootViewController = new MyViewController();
// Create a new window at screen size.
window = new UIWindow(UIScreen.getMainScreen().getBounds());
// Set the view controller as the root controller for the window.
window.setRootViewController(rootViewController);
// Make the window visible.
window.makeKeyAndVisible();
return true;
}
示例11: main
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
public static void main(String[] argv) {
NSAutoreleasePool pool = new NSAutoreleasePool();
UIApplication.main(argv, null, IOSLauncher.class);
pool.close();
}
示例12: main
import org.robovm.apple.uikit.UIApplication; //导入依赖的package包/类
public static void main(String[] argv)
{
NSAutoreleasePool pool = new NSAutoreleasePool();
UIApplication.main(argv, null, IOSLauncher.class);
pool.close();
}