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.GLKViewControllerPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIViewController
org.robovm.apple.uikit.UIViewController.Notifications, org.robovm.apple.uikit.UIViewController.UIViewControllerPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
org.robovm.apple.uikit.UIResponder.UIResponderPtrNested 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.NSObjectPtrNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal RoboPlatformThe platform managed by this view controller.Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN -
Constructor Summary
ConstructorsConstructorDescriptionRoboViewController(org.robovm.apple.coregraphics.CGRect bounds, RoboPlatform.Config config) Creates a game view controller with the given bounds and configuration -
Method Summary
Modifier and TypeMethodDescriptionvoiddidRotate(org.robovm.apple.uikit.UIInterfaceOrientation fromOrient) org.robovm.apple.uikit.UIInterfaceOrientationMaskbooleanvoidviewDidAppear(boolean animated) voidviewDidDisappear(boolean animated) voidviewWillAppear(boolean animated) voidviewWillDisappear(boolean animated) voidwillRotate(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, setResumesOnDidBecomeActiveMethods 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, willTransitionToTraitCollectionMethods 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, updateUserActivityStateMethods 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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, getAssociatedObject, getObjCClass, logRetainRelease, removeStrongRef, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandleMethods inherited from interface org.robovm.apple.foundation.NSCoding
encode
-
Field Details
-
plat
The platform managed by this view controller.
-
-
Constructor Details
-
RoboViewController
Creates a game view controller with the given bounds and configuration
-
-
Method Details
-
viewWillAppear
public void viewWillAppear(boolean animated) - Overrides:
viewWillAppearin classorg.robovm.apple.uikit.UIViewController
-
viewDidAppear
public void viewDidAppear(boolean animated) - Overrides:
viewDidAppearin classorg.robovm.apple.uikit.UIViewController
-
viewWillDisappear
public void viewWillDisappear(boolean animated) - Overrides:
viewWillDisappearin classorg.robovm.apple.uikit.UIViewController
-
viewDidDisappear
public void viewDidDisappear(boolean animated) - Overrides:
viewDidDisappearin classorg.robovm.apple.uikit.UIViewController
-
willRotate
public void willRotate(org.robovm.apple.uikit.UIInterfaceOrientation toOrient, double duration) - Overrides:
willRotatein classorg.robovm.apple.uikit.UIViewController
-
didRotate
public void didRotate(org.robovm.apple.uikit.UIInterfaceOrientation fromOrient) - Overrides:
didRotatein classorg.robovm.apple.uikit.UIViewController
-
getSupportedInterfaceOrientations
public org.robovm.apple.uikit.UIInterfaceOrientationMask getSupportedInterfaceOrientations()- Overrides:
getSupportedInterfaceOrientationsin classorg.robovm.apple.uikit.UIViewController
-
shouldAutorotate
public boolean shouldAutorotate()- Overrides:
shouldAutorotatein classorg.robovm.apple.uikit.UIViewController
-