當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。