Package playn.robovm

Class RoboViewController

java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIResponder
org.robovm.apple.uikit.UIViewController
org.robovm.apple.glkit.GLKViewController
playn.robovm.RoboViewController
All Implemented Interfaces:
org.robovm.apple.foundation.NSCoding, org.robovm.apple.foundation.NSExtensionRequestHandling, org.robovm.apple.foundation.NSObjectProtocol, org.robovm.apple.glkit.GLKViewDelegate, org.robovm.apple.uikit.UIAccessibility, org.robovm.apple.uikit.UIAppearanceContainer, org.robovm.apple.uikit.UIContentContainer, org.robovm.apple.uikit.UIFocusEnvironment, org.robovm.apple.uikit.UIStateRestoring, org.robovm.apple.uikit.UITraitEnvironment, org.robovm.objc.ObjCProtocol

public class RoboViewController extends org.robovm.apple.glkit.GLKViewController
Manages the main PlayN view as well as all iOS and GL callbacks and lifecycle. This is the root of the iOS backend. If you want to customize things or embed PlayN, you'll want to understand what this class does.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.robovm.apple.glkit.GLKViewController

    org.robovm.apple.glkit.GLKViewController.GLKViewControllerPtr

    Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIViewController

    org.robovm.apple.uikit.UIViewController.Notifications, org.robovm.apple.uikit.UIViewController.UIViewControllerPtr

    Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder

    org.robovm.apple.uikit.UIResponder.UIResponderPtr

    Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject

    org.robovm.apple.foundation.NSObject.Marshaler, org.robovm.apple.foundation.NSObject.NoRetainMarshaler, org.robovm.apple.foundation.NSObject.NSKeyValueObserver, org.robovm.apple.foundation.NSObject.NSObjectPtr

    Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject

    org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The platform managed by this view controller.

    Fields inherited from class org.robovm.apple.foundation.NSObject

    FLAG_NO_RETAIN
  • Constructor Summary

    Constructors
    Constructor
    Description
    RoboViewController(org.robovm.apple.coregraphics.CGRect bounds, RoboPlatform.Config config)
    Creates a game view controller with the given bounds and configuration
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    didRotate(org.robovm.apple.uikit.UIInterfaceOrientation fromOrient)
     
    org.robovm.apple.uikit.UIInterfaceOrientationMask
     
    boolean
     
    void
    viewDidAppear(boolean animated)
     
    void
    viewDidDisappear(boolean animated)
     
    void
    viewWillAppear(boolean animated)
     
    void
    viewWillDisappear(boolean animated)
     
    void
    willRotate(org.robovm.apple.uikit.UIInterfaceOrientation toOrient, double duration)
     

    Methods inherited from class org.robovm.apple.glkit.GLKViewController

    draw, getDelegate, getFramesDisplayed, getFramesPerSecond, getPreferredFramesPerSecond, getTimeSinceFirstResume, getTimeSinceLastDraw, getTimeSinceLastResume, getTimeSinceLastUpdate, isPaused, pausesOnWillResignActive, resumesOnDidBecomeActive, setDelegate, setPaused, setPausesOnWillResignActive, setPreferredFramesPerSecond, setResumesOnDidBecomeActive

    Methods inherited from class org.robovm.apple.uikit.UIViewController

    addChildViewController, addKeyCommand, applicationFinishedRestoringState, attemptRotationToDeviceOrientation, automaticallyAdjustsScrollViewInsets, beginAppearanceTransition, beginRequest, canPerformUnwind, collapseSecondaryViewController, decodeRestorableState, definesPresentationContext, didMoveToParentViewController, didReceiveMemoryWarning, didUpdateFocus, disablesAutomaticKeyboardDismissal, dismissMoviePlayerViewController, dismissViewController, encode, encodeRestorableState, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, getAdditionalSafeAreaInsets, getAllowedChildViewControllersForUnwinding, getBottomLayoutGuide, getChildViewControllerContainingSegueSource, getChildViewControllerForHomeIndicatorAutoHidden, getChildViewControllerForScreenEdgesDeferringSystemGestures, getChildViewControllerForStatusBarHidden, getChildViewControllerForStatusBarStyle, getChildViewControllers, getContentSizeForViewInPopover, getEdgesForExtendedLayout, getEditButtonItem, getExtensionContext, getFocusItemContainer, getInterfaceOrientation, getInterstitialPresentationPolicy, getModalPresentationStyle, getModalTransitionStyle, getNavigationController, getNavigationItem, getNibBundle, getNibName, getObjectRestorationClass, getOriginalContentView, getOverrideTraitCollection, getParentFocusEnvironment, getParentViewController, getPopoverPresentationController, getPreferredContentSize, getPreferredFocusedView, getPreferredFocusEnvironments, getPreferredInterfaceOrientationForPresentation, getPreferredScreenEdgesDeferringSystemGestures, getPreferredStatusBarStyle, getPreferredStatusBarUpdateAnimation, getPresentationController, getPresentedViewController, getPresentingViewController, getPreviewActionItems, getRestorationClass, getRestorationIdentifier, getRestorationParent, getRotatingFooterView, getRotatingHeaderView, getSearchDisplayController, getSegueForUnwinding, getSplitViewController, getStoryboard, getSystemMinimumLayoutMargins, getTabBarController, getTabBarItem, getTargetViewControllerForAction, getTitle, getToolbarItems, getTopLayoutGuide, getTraitCollection, getTransitionCoordinator, getTransitioningDelegate, getView, getViewControllerForUnwind, getViewIfLoaded, hidesBottomBarWhenPushed, isBeingDismissed, isBeingPresented, isCanDisplayBannerAds, isDisplayingBannerAd, isEditing, isModalInPopover, isMovingFromParentViewController, isMovingToParentViewController, isPresentingFullScreenAd, isRestoresFocusAfterTransition, isViewLoaded, isViewRespectsSystemMinimumLayoutMargins, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, performSegue, preferredContentSizeDidChangeForChildContentContainer, prefersHomeIndicatorAutoHidden, prefersStatusBarHidden, prepareForSegue, prepareInterstitialAds, presentMoviePlayerViewController, presentViewController, providesPresentationContextTransitionStyle, registerForPreviewing, removeFromParentViewController, removeKeyCommand, requestInterstitialAdPresentation, separateSecondaryViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setCanDisplayBannerAds, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setExtendedLayoutIncludesOpaqueBars, setHidesBottomBarWhenPushed, setInterstitialPresentationPolicy, setModalInPopover, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollection, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItems, setTransitioningDelegate, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldPerformSegue, shouldPresentInterstitialAd, shouldUpdateFocus, ShowDetailTargetDidChangeNotification, showDetailViewController, showViewController, sizeForChildContentContainer, systemLayoutFittingSizeDidChangeForChildContentContainer, traitCollectionDidChange, transition, unregisterForPreviewing, unwind, updateFocusIfNeeded, updateViewConstraints, viewDidLayoutSubviews, viewDidLoad, viewLayoutMarginsDidChange, viewSafeAreaInsetsDidChange, viewWillLayoutSubviews, viewWillTransitionToSize, wantsFullScreenLayout, willAnimateRotation, willMoveToParentViewController, willTransitionToTraitCollection

    Methods inherited from class org.robovm.apple.uikit.UIResponder

    areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState

    Methods inherited from class org.robovm.apple.foundation.NSObject

    addKeyValueObserver, addKeyValueObserver, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, equals, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues

    Methods inherited from class org.robovm.objc.ObjCObject

    addStrongRef, dispose, getAssociatedObject, getObjCClass, logRetainRelease, removeStrongRef, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef

    Methods inherited from class org.robovm.rt.bro.NativeObject

    as, getHandle

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.robovm.apple.foundation.NSCoding

    encode
  • Field Details

    • plat

      public final RoboPlatform plat
      The platform managed by this view controller.
  • Constructor Details

    • RoboViewController

      public RoboViewController(org.robovm.apple.coregraphics.CGRect bounds, RoboPlatform.Config config)
      Creates a game view controller with the given bounds and configuration
  • Method Details

    • viewWillAppear

      public void viewWillAppear(boolean animated)
      Overrides:
      viewWillAppear in class org.robovm.apple.uikit.UIViewController
    • viewDidAppear

      public void viewDidAppear(boolean animated)
      Overrides:
      viewDidAppear in class org.robovm.apple.uikit.UIViewController
    • viewWillDisappear

      public void viewWillDisappear(boolean animated)
      Overrides:
      viewWillDisappear in class org.robovm.apple.uikit.UIViewController
    • viewDidDisappear

      public void viewDidDisappear(boolean animated)
      Overrides:
      viewDidDisappear in class org.robovm.apple.uikit.UIViewController
    • willRotate

      public void willRotate(org.robovm.apple.uikit.UIInterfaceOrientation toOrient, double duration)
      Overrides:
      willRotate in class org.robovm.apple.uikit.UIViewController
    • didRotate

      public void didRotate(org.robovm.apple.uikit.UIInterfaceOrientation fromOrient)
      Overrides:
      didRotate in class org.robovm.apple.uikit.UIViewController
    • getSupportedInterfaceOrientations

      public org.robovm.apple.uikit.UIInterfaceOrientationMask getSupportedInterfaceOrientations()
      Overrides:
      getSupportedInterfaceOrientations in class org.robovm.apple.uikit.UIViewController
    • shouldAutorotate

      public boolean shouldAutorotate()
      Overrides:
      shouldAutorotate in class org.robovm.apple.uikit.UIViewController