当前位置: 首页>>代码示例>>Java>>正文


Java UIApplication类代码示例

本文整理汇总了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;
}
 
开发者ID:playn,项目名称:playn-samples,代码行数:20,代码来源:DropRoboVM.java

示例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);
}
 
开发者ID:liraz,项目名称:robolayout,代码行数:9,代码来源:ResourceManager.java

示例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;
}
 
开发者ID:Longri,项目名称:cachebox3.0,代码行数:9,代码来源:IOS_Launcher.java

示例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;
}
 
开发者ID:playn,项目名称:playn-samples,代码行数:35,代码来源:ShowcaseRoboVM.java

示例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;
}
 
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:14,代码来源:IOSLauncher.java

示例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;
}
 
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:15,代码来源:IOSLauncher.java

示例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);
}
 
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:29,代码来源:IOSLauncher.java

示例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;
}
 
开发者ID:tianqiujie,项目名称:robovm-ios-bindings,代码行数:35,代码来源:IOSLauncher.java

示例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();
}
 
开发者ID:UnderwaterApps,项目名称:submarine,代码行数:11,代码来源:IOSGameServices.java

示例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;
}
 
开发者ID:robovm,项目名称:robovm-templates,代码行数:15,代码来源:__mainClass__.java

示例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();
}
 
开发者ID:gradualgames,项目名称:ggvm,代码行数:6,代码来源:IOSLauncher.java

示例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();
}
 
开发者ID:kurtyu,项目名称:PixelDungeonTC,代码行数:7,代码来源:IOSLauncher.java


注:本文中的org.robovm.apple.uikit.UIApplication类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。