Share via


GLKViewController Class

Definition

[Foundation.Register("GLKViewController", true)]
public class GLKViewController : UIKit.UIViewController, GLKit.IGLKViewDelegate, IDisposable
[<Foundation.Register("GLKViewController", true)>]
type GLKViewController = class
    inherit UIViewController
    interface IGLKViewDelegate
    interface INativeObject
    interface IDisposable
Inheritance
Attributes
Implements

Remarks

UIViewController specifically designed to host OpenGL content, in particular animated content rendered on a GLKView. It automatically sets up a CADisplayLink to synchornize the updates with the screen refresh.

This view controller drives the animation of the main thread of your application. You should configure the View property (which is guaranteed to be of type GLKView) appropriately to draw its contents and you should override the Update methods to keep track of time (it will be called just before the frame is displayed).

You should determine appropriate frame rate for your application and set the PreferredFramesPerSecond property.

The view controller can automatically stop animation when the view is obscured. See the PauseOnWillResignActive and Pause properties.

Since iOS 4.0, rotation is handled by the UIViewController. In addition to overriding the methods that control the orientation capabilities of your application, you should reallocate your framebuffer objects on the LayoutSubviews method.

public override LayoutSubviews ()
{
DeleteFramebuffer ();
CreateFramebuffer ();
}

As with other C# bindings, you can choose to either subclass the GLKViewControllerDelegate class and assign it to the Delegate property, or you can use the mapped C# style events.

The following shows how to create your subclass of GLKViewController and do the basic setup. You should allocate your GL resources in the ViewDidLoad method and release them in ViewDidUnload.

public class RippleViewController : GLKViewController {

public override void ViewDidLoad ()
{
base.ViewDidLoad ();

	// create rendering context
context = new EAGLContext (EAGLRenderingAPI.OpenGLES2);

	// Get the nested GLKView and configure it.
glkView = (GLKView) View;
glkView.Context = context;
glkView.MultipleTouchEnabled = true;

	// Hook up the rendering method.
glkView.DrawInRect += Draw;

	// Configure the GLKViewController properties
PreferredFramesPerSecond = 60;

	// Your own setup
SetupGL ();
}

void Draw (object sender, GLKViewDrawEventArgs args)
{
GL.Clear ((int)All.ColorBufferBit);
	// More GL code here.
}

// Called before each frame is displayed, use to collect
// information to compute data for the next frame to be
// rendered.
public override void Update ()
{

}

}

Constructors

Name Description
GLKViewController()

Creates a new GLKViewController with default values.

GLKViewController(NativeHandle)

A constructor used when creating managed representations of unmanaged objects. Called by the runtime.

GLKViewController(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

GLKViewController(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

GLKViewController(String, NSBundle)

Creates a new GLKViewController from the specified Nib name in the specified bundle.

Properties

Name Description
AccessibilityAssistiveTechnologyFocusedIdentifiers (Inherited from UIResponder)
AccessibilityAttributedUserInputLabels (Inherited from NSObject)
AccessibilityCustomActions (Inherited from UIResponder)
AccessibilityDragSourceDescriptors (Inherited from UIResponder)
AccessibilityDropPointDescriptors (Inherited from UIResponder)
AccessibilityRespondsToUserInteraction (Inherited from NSObject)
AccessibilityTextualContext (Inherited from NSObject)
AccessibilityUserInputLabels (Inherited from NSObject)
ActivePresentationController (Inherited from UIViewController)
ActivityItemsConfiguration (Inherited from UIResponder)
AdditionalSafeAreaInsets (Inherited from UIViewController)
AutomaticallyAdjustsScrollViewInsets (Inherited from UIViewController)
AutomaticallyForwardAppearanceAndRotationMethodsToChildViewControllers (Inherited from UIViewController)
BottomLayoutGuide (Inherited from UIViewController)
CanBecomeFirstResponder (Inherited from UIResponder)
CanResignFirstResponder (Inherited from UIResponder)
ChildViewControllerForHomeIndicatorAutoHidden (Inherited from UIViewController)
ChildViewControllerForPointerLock (Inherited from UIViewController)
ChildViewControllerForScreenEdgesDeferringSystemGestures (Inherited from UIViewController)
ChildViewControllerForUserInterfaceStyle (Inherited from UIViewController)
ChildViewControllers (Inherited from UIViewController)
Class (Inherited from NSObject)
ClassHandle

The Objective-C class handle for this class.

ContentSizeForViewInPopover (Inherited from UIViewController)
ContentUnavailableConfiguration (Inherited from UIViewController)
ContentUnavailableConfigurationState (Inherited from UIViewController)
DebugDescription (Inherited from NSObject)
DefinesPresentationContext (Inherited from UIViewController)
Delegate

An instance of the GLKit.IGLKViewControllerDelegate model class which acts as the class delegate.

Description (Inherited from NSObject)
DisablesAutomaticKeyboardDismissal (Inherited from UIViewController)
EdgesForExtendedLayout (Inherited from UIViewController)
EditButtonItem (Inherited from UIViewController)
Editing

true if the UIViewController allows the application user to edit the UIView contents.

(Inherited from UIViewController)
EditingInteractionConfiguration (Inherited from UIResponder)
ExtendedLayoutIncludesOpaqueBars (Inherited from UIViewController)
ExtensionContext (Inherited from UIViewController)
FocusGroupIdentifier (Inherited from UIViewController)
FocusItemContainer

Gets the container that manages focus information for child focus items.

(Inherited from UIViewController)
FramesDisplayed

Cumulative count of frames displayed.

FramesPerSecond

The actual frames per second that your application is getting.

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from NSObject)
HidesBottomBarWhenPushed (Inherited from UIViewController)
InputAccessoryView (Inherited from UIResponder)
InputAccessoryViewController (Inherited from UIResponder)
InputAssistantItem (Inherited from UIResponder)
InputView (Inherited from UIResponder)
InputViewController (Inherited from UIResponder)
InteractionActivityTrackingBaseName (Inherited from UIViewController)
InterfaceOrientation (Inherited from UIViewController)
IsBeingDismissed

true if the current UIViewController is in the process of being dismissed.

(Inherited from UIViewController)
IsBeingPresented

true if the current UIViewController is in the process of being presented.

(Inherited from UIViewController)
IsDirectBinding (Inherited from NSObject)
IsFirstResponder (Inherited from UIResponder)
IsMovingFromParentViewController

true if the current UIViewController is in the process of being removed from its parent UIViewController.

(Inherited from UIViewController)
IsMovingToParentViewController

true if the current UIViewController is in the process of being added to a parent UIViewController.

(Inherited from UIViewController)
IsProxy (Inherited from NSObject)
IsViewLoaded

A Boolean indicating whether the View is loaded into memory.

(Inherited from UIViewController)
KeyCommands (Inherited from UIResponder)
ModalInPopover

true if this UIViewController should be presented modally by a UIPopoverController.

(Inherited from UIViewController)
ModalInPresentation (Inherited from UIViewController)
ModalPresentationCapturesStatusBarAppearance (Inherited from UIViewController)
ModalPresentationStyle (Inherited from UIViewController)
ModalTransitionStyle (Inherited from UIViewController)
ModalViewController (Inherited from UIViewController)
NavigationController (Inherited from UIViewController)
NavigationItem (Inherited from UIViewController)
NextResponder (Inherited from UIResponder)
NibBundle (Inherited from UIViewController)
NibName (Inherited from UIViewController)
OverrideUserInterfaceStyle (Inherited from UIViewController)
ParentFocusEnvironment

Gets the parent focus environment.

(Inherited from UIViewController)
ParentViewController (Inherited from UIViewController)
PasteConfiguration

The UIPasteConfiguration supported by this object.

(Inherited from UIResponder)
Paused

When paused, the Update and Draw methods are not invoked.

PauseOnWillResignActive

Gets or sets a Boolean value that controls whether the rendering loop will pause when the application resigns from the active state.

PerformsActionsWhilePresentingModally (Inherited from UIViewController)
PopoverPresentationController (Inherited from UIViewController)
PreferredContentSize (Inherited from UIViewController)
PreferredFocusedView

If not null, indicates the child UIView that should receive focus by default.

(Inherited from UIViewController)
PreferredFocusEnvironments

Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus.

(Inherited from UIViewController)
PreferredFramesPerSecond

The desired number of frames per second. Controls the frequency that your Update and Draw methods will be called.

PreferredScreenEdgesDeferringSystemGestures (Inherited from UIViewController)
PreferredStatusBarUpdateAnimation (Inherited from UIViewController)
PreferredTransition (Inherited from UIViewController)
PreferredUserInterfaceStyle (Inherited from UIViewController)
PrefersHomeIndicatorAutoHidden (Inherited from UIViewController)
PrefersPointerLocked (Inherited from UIViewController)
PresentationController (Inherited from UIViewController)
PresentedViewController (Inherited from UIViewController)
PresentingViewController (Inherited from UIViewController)
PreviewActionItems (Inherited from UIViewController)
ProvidesPresentationContextTransitionStyle (Inherited from UIViewController)
RestorationClass (Inherited from UIViewController)
RestorationIdentifier (Inherited from UIViewController)
RestoresFocusAfterTransition (Inherited from UIViewController)
ResumeOnDidBecomeActive

Gets or sets a Boolean value that controls whether the rendering loop will resume when the application enters the active state.

RetainCount (Inherited from NSObject)
RotatingFooterView (Inherited from UIViewController)
RotatingHeaderView (Inherited from UIViewController)
SearchDisplayController (Inherited from UIViewController)
Self (Inherited from NSObject)
SheetPresentationController (Inherited from UIViewController)
ShouldAutomaticallyForwardAppearanceMethods (Inherited from UIViewController)
ShouldAutomaticallyForwardRotationMethods (Inherited from UIViewController)
SplitViewController (Inherited from UIViewController)
Storyboard (Inherited from UIViewController)
Superclass (Inherited from NSObject)
SuperHandle

Handle used to represent the methods in the base class for this NSObject.

(Inherited from NSObject)
SystemMinimumLayoutMargins (Inherited from UIViewController)
Tab (Inherited from UIViewController)
TabBarController (Inherited from UIViewController)
TabBarItem (Inherited from UIViewController)
TabBarObservedScrollView (Inherited from UIViewController)
TextInputContextIdentifier (Inherited from UIResponder)
TextInputMode (Inherited from UIResponder)
TimeSinceFirstResume

Gets the time interval, in seconds, since the view controller first resumed sending updates.

TimeSinceLastDraw
TimeSinceLastResume

Gets the time interval, in seconds, since the view controller most recently resumed sending updates.

TimeSinceLastUpdate
Title (Inherited from UIViewController)
ToolbarItems (Inherited from UIViewController)
TopLayoutGuide (Inherited from UIViewController)
TraitCollection

Gets the trait collection that describes the environment.

(Inherited from UIViewController)
TraitOverrides (Inherited from UIViewController)
TransitioningDelegate

A delegate object that is responsible for producing IUIViewControllerAnimatedTransitionings for custom presentation.

(Inherited from UIViewController)
UndoManager (Inherited from UIResponder)
UserActivity (Inherited from UIResponder)
View (Inherited from UIViewController)
ViewIfLoaded (Inherited from UIViewController)
ViewRespectsSystemMinimumLayoutMargins (Inherited from UIViewController)
WantsFullScreenLayout (Inherited from UIViewController)
WeakDelegate

An object that can respond to the delegate protocol for this type

WeakTransitioningDelegate (Inherited from UIViewController)
Zone (Inherited from NSObject)

Methods

Name Description
AccessibilityDecrement() (Inherited from UIResponder)
AccessibilityElementDidBecomeFocused() (Inherited from UIResponder)
AccessibilityElementDidLoseFocus() (Inherited from UIResponder)
AccessibilityElementIsFocused() (Inherited from UIResponder)
AccessibilityIncrement() (Inherited from UIResponder)
AccessibilityPerformEscape() (Inherited from UIResponder)
AccessibilityPerformMagicTap() (Inherited from UIResponder)
AccessibilityScroll(UIAccessibilityScrollDirection) (Inherited from UIResponder)
Add(UIView)

This is an alias for AddSubview(UIView), but uses the Add pattern as it allows C# 3.0 constructs to add subviews after creating the object.

(Inherited from UIViewController)
AddChildViewController(UIViewController) (Inherited from UIViewController)
AddKeyCommand(UIKeyCommand) (Inherited from UIViewController)
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (Inherited from NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (Inherited from NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AlignCenter(NSObject) (Inherited from UIResponder)
AlignJustified(NSObject) (Inherited from UIResponder)
AlignLeft(NSObject) (Inherited from UIResponder)
AlignRight(NSObject) (Inherited from UIResponder)
ApplicationFinishedRestoringState() (Inherited from UIViewController)
AwakeFromNib() (Inherited from NSObject)
BecomeFirstResponder() (Inherited from UIResponder)
BeginAppearanceTransition(Boolean, Boolean) (Inherited from UIViewController)
BeginInvokeOnMainThread(Action) (Inherited from NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously the specified code on the main UI thread.

(Inherited from NSObject)
BeginRequestWithExtensionContext(NSExtensionContext)

Developers can implement this method to prepare their extension for the host application request.

(Inherited from UIViewController)
BuildMenu(IUIMenuBuilder) (Inherited from UIResponder)
CanPaste(NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

(Inherited from UIResponder)
CanPerform(Selector, NSObject) (Inherited from UIResponder)
CanPerformUnwind(Selector, UIViewController, NSObject) (Inherited from UIViewController)
CanPerformUnwindDeprecated(Selector, UIViewController, NSObject) (Inherited from UIViewController)
CaptureTextFromCamera(NSObject) (Inherited from UIResponder)
ChildViewControllerForStatusBarHidden() (Inherited from UIViewController)
ChildViewControllerForStatusBarStyle() (Inherited from UIViewController)
ConformsToProtocol(NativeHandle) (Inherited from NSObject)
Copy() (Inherited from NSObject)
Copy(NSObject) (Inherited from UIResponder)
Cut(NSObject) (Inherited from UIResponder)
DangerousAutorelease()

Calls the 'autorelease' selector on this object.

(Inherited from NSObject)
DangerousRelease()

Calls the 'release' selector on this object.

(Inherited from NSObject)
DangerousRetain()

Calls the 'retain' selector on this object.

(Inherited from NSObject)
DecodeRestorableState(NSCoder) (Inherited from UIViewController)
DecreaseSize(NSObject) (Inherited from UIResponder)
Delete(NSObject) (Inherited from UIResponder)
DidAnimateFirstHalfOfRotation(UIInterfaceOrientation) (Inherited from UIViewController)
DidChange(NSKeyValueChange, NSIndexSet, NSString) (Inherited from NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
DidChangeValue(String) (Inherited from NSObject)
DidMoveToParentViewController(UIViewController) (Inherited from UIViewController)
DidReceiveMemoryWarning() (Inherited from UIViewController)
DidRotate(UIInterfaceOrientation) (Inherited from UIViewController)
DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)

Delegate method called shortly after focus has changed to a new UIView.

(Inherited from UIViewController)
DismissModalViewController(Boolean) (Inherited from UIViewController)
DismissMoviePlayerViewController()

Dismisses the MPMoviePlayerViewController.

(Inherited from UIViewController)
DismissViewController(Boolean, Action) (Inherited from UIViewController)
DismissViewControllerAsync(Boolean)

Dismisses the presented view controller.

(Inherited from UIViewController)
Dispose()

Releases the resources used by the NSObject object.

(Inherited from NSObject)
Dispose(Boolean)
DoesNotRecognizeSelector(Selector) (Inherited from NSObject)
DrawInRect(GLKView, CGRect)
Duplicate(NSObject) (Inherited from UIResponder)
EncodeRestorableState(NSCoder) (Inherited from UIViewController)
EncodeTo(NSCoder)

Encodes the state of the object using the provided encoder.

(Inherited from UIViewController)
EndAppearanceTransition() (Inherited from UIViewController)
Equals(NSObject) (Inherited from NSObject)
Equals(Object) (Inherited from NSObject)
Export(NSObject) (Inherited from UIResponder)
Find(NSObject) (Inherited from UIResponder)
FindAndReplace(NSObject) (Inherited from UIResponder)
FindNext(NSObject) (Inherited from UIResponder)
FindPrevious(NSObject) (Inherited from UIResponder)
GetAllowedChildViewControllersForUnwinding(UIStoryboardUnwindSegueSource) (Inherited from UIViewController)
GetChildViewControllerContainingSegueSource(UIStoryboardUnwindSegueSource) (Inherited from UIViewController)
GetChildViewControllerForInterfaceOrientationLock() (Inherited from UIViewController)
GetContentScrollView(NSDirectionalRectEdge) (Inherited from UIViewController)
GetDictionaryOfValuesFromKeys(NSString[]) (Inherited from NSObject)
GetEnumerator()

Returns an enumerator that lists all of the child UIViews

(Inherited from UIViewController)
GetHashCode()

Generates a hash code for the current instance.

(Inherited from NSObject)
GetMethodForSelector(Selector) (Inherited from NSObject)
GetNativeHash() (Inherited from NSObject)
GetOverrideTraitCollectionForChildViewController(UIViewController) (Inherited from UIViewController)
GetProvider(UIDeferredMenuElement) (Inherited from UIResponder)
GetSegueForUnwinding(UIViewController, UIViewController, String) (Inherited from UIViewController)
GetSizeForChildContentContainer(IUIContentContainer, CGSize)

Gets the size of the content of the specified child IUIContentContainer by using the size of the parent container.

(Inherited from UIViewController)
GetSoundIdentifier(UIFocusUpdateContext) (Inherited from UIViewController)
GetSupportedInterfaceOrientations() (Inherited from UIViewController)
GetTargetForAction(Selector, NSObject) (Inherited from UIResponder)
GetTargetViewControllerForAction(Selector, NSObject) (Inherited from UIViewController)
GetViewControllerForUnwind(Selector, UIViewController, NSObject) (Inherited from UIViewController)
IncreaseSize(NSObject) (Inherited from UIResponder)
Init() (Inherited from NSObject)
InitializeHandle(NativeHandle, String) (Inherited from NSObject)
InitializeHandle(NativeHandle) (Inherited from NSObject)
Invoke(Action, Double) (Inherited from NSObject)
Invoke(Action, TimeSpan) (Inherited from NSObject)
InvokeOnMainThread(Action) (Inherited from NSObject)
InvokeOnMainThread(Selector, NSObject)

Invokes synchrously the specified code on the main UI thread.

(Inherited from NSObject)
IsEqual(NSObject) (Inherited from NSObject)
IsKindOfClass(Class) (Inherited from NSObject)
IsMemberOfClass(Class) (Inherited from NSObject)
LoadView() (Inherited from UIViewController)
LoadViewIfNeeded() (Inherited from UIViewController)
MakeTextWritingDirectionLeftToRight(NSObject) (Inherited from UIResponder)
MakeTextWritingDirectionRightToLeft(NSObject) (Inherited from UIResponder)
MarkDirty()

Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.

(Inherited from NSObject)
MotionBegan(UIEventSubtype, UIEvent) (Inherited from UIResponder)
MotionCancelled(UIEventSubtype, UIEvent) (Inherited from UIResponder)
MotionEnded(UIEventSubtype, UIEvent) (Inherited from UIResponder)
Move(NSObject) (Inherited from UIResponder)
MutableCopy() (Inherited from NSObject)
NewFromPasteboard(NSObject) (Inherited from UIResponder)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) (Inherited from NSObject)
Paste(NSItemProvider[])

Performs the paste.

(Inherited from UIResponder)
Paste(NSObject) (Inherited from UIResponder)
PasteAndGo(NSObject) (Inherited from UIResponder)
PasteAndMatchStyle(NSObject) (Inherited from UIResponder)
PasteAndSearch(NSObject) (Inherited from UIResponder)
PerformClose(NSObject) (Inherited from UIResponder)
PerformSegue(String, NSObject) (Inherited from UIViewController)
PerformSelector(Selector, NSObject, Double, NSString[]) (Inherited from NSObject)
PerformSelector(Selector, NSObject, Double) (Inherited from NSObject)
PerformSelector(Selector, NSObject, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean) (Inherited from NSObject)
PerformSelector(Selector) (Inherited from NSObject)
PreferredContentSizeDidChangeForChildContentContainer(IUIContentContainer)

Notifies this controller that the preferred size for content for a specified child container has changed.

(Inherited from UIViewController)
PreferredInterfaceOrientationForPresentation() (Inherited from UIViewController)
PreferredStatusBarStyle() (Inherited from UIViewController)
PrefersInterfaceOrientationLocked() (Inherited from UIViewController)
PrefersStatusBarHidden() (Inherited from UIViewController)
PrepareForInterfaceBuilder() (Inherited from NSObject)
PrepareForSegue(UIStoryboardSegue, NSObject) (Inherited from UIViewController)
PresentModalViewController(UIViewController, Boolean) (Inherited from UIViewController)
PresentMoviePlayerViewController(MPMoviePlayerViewController)

Displays a movie controller using the standard transition.

(Inherited from UIViewController)
PresentViewController(UIViewController, Boolean, Action) (Inherited from UIViewController)
PresentViewControllerAsync(UIViewController, Boolean)

Modally presents a view controller.

(Inherited from UIViewController)
PressesBegan(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
PressesCancelled(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
PressesChanged(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
PressesEnded(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
Print(NSObject) (Inherited from UIResponder)
RegisterForPreviewingWithDelegate(IUIViewControllerPreviewingDelegate, UIView) (Inherited from UIViewController)
RegisterForTraitChanges(Action<IUITraitEnvironment,UITraitCollection>, Type[])

Registers a callback handler that will be executed when one of the specified traits changes.

(Inherited from UIViewController)
RegisterForTraitChanges(Class[], Action<IUITraitEnvironment,UITraitCollection>) (Inherited from UIViewController)
RegisterForTraitChanges(Class[], NSObject, Selector) (Inherited from UIViewController)
RegisterForTraitChanges(Class[], Selector) (Inherited from UIViewController)
RegisterForTraitChanges(IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
Obsolete.
(Inherited from UIViewController)
RegisterForTraitChanges(IUITraitDefinition[], NSObject, Selector)
Obsolete.
(Inherited from UIViewController)
RegisterForTraitChanges(IUITraitDefinition[], Selector)
Obsolete.
(Inherited from UIViewController)
RegisterForTraitChanges(Type[], Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when one of the specified traits changes.

(Inherited from UIViewController)
RegisterForTraitChanges(Type[], NSObject, Selector)

Registers a selector that will be called on the specified object when any of the specified traits changes.

(Inherited from UIViewController)
RegisterForTraitChanges(Type[], Selector)

Registers a selector that will be called on the current object when any of the specified traits changes.

(Inherited from UIViewController)
RegisterForTraitChanges<T>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when the specified trait changes.

(Inherited from UIViewController)
RegisterForTraitChanges<T1,T2,T3,T4>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIViewController)
RegisterForTraitChanges<T1,T2,T3>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIViewController)
RegisterForTraitChanges<T1,T2>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIViewController)
ReloadInputViews() (Inherited from UIResponder)
RemoteControlReceived(UIEvent) (Inherited from UIResponder)
RemoveFromParentViewController() (Inherited from UIViewController)
RemoveKeyCommand(UIKeyCommand) (Inherited from UIViewController)
RemoveObserver(NSObject, NSString, IntPtr) (Inherited from NSObject)
RemoveObserver(NSObject, NSString) (Inherited from NSObject)
RemoveObserver(NSObject, String, IntPtr) (Inherited from NSObject)
RemoveObserver(NSObject, String) (Inherited from NSObject)
Rename(NSObject) (Inherited from UIResponder)
ResignFirstResponder() (Inherited from UIResponder)
RespondsToSelector(Selector) (Inherited from NSObject)
RestoreUserActivityState(NSUserActivity) (Inherited from UIResponder)
Select(NSObject) (Inherited from UIResponder)
SelectAll(NSObject) (Inherited from UIResponder)
SetContentScrollView(UIScrollView, NSDirectionalRectEdge) (Inherited from UIViewController)
SetEditing(Boolean, Boolean) (Inherited from UIViewController)
SetNeedsFocusUpdate()

When this is the active focus environment, requests a focus update, which can potentially change the PreferredFocusedView. (See also UpdateFocusIfNeeded().)

(Inherited from UIViewController)
SetNeedsStatusBarAppearanceUpdate() (Inherited from UIViewController)
SetNeedsUpdateContentUnavailableConfiguration() (Inherited from UIViewController)
SetNeedsUpdateOfHomeIndicatorAutoHidden() (Inherited from UIViewController)
SetNeedsUpdateOfPrefersInterfaceOrientationLocked() (Inherited from UIViewController)
SetNeedsUpdateOfPrefersPointerLocked() (Inherited from UIViewController)
SetNeedsUpdateOfScreenEdgesDeferringSystemGestures() (Inherited from UIViewController)
SetNeedsUpdateOfSupportedInterfaceOrientations() (Inherited from UIViewController)
SetNeedsUpdateProperties() (Inherited from UIViewController)
SetNeedsUserInterfaceAppearanceUpdate() (Inherited from UIViewController)
SetNilValueForKey(NSString) (Inherited from NSObject)
SetOverrideTraitCollection(UITraitCollection, UIViewController) (Inherited from UIViewController)
SetToolbarItems(UIBarButtonItem[], Boolean) (Inherited from UIViewController)
SetValueForKey(NSObject, NSString) (Inherited from NSObject)
SetValueForKeyPath(NativeHandle, NSString) (Inherited from NSObject)
SetValueForKeyPath(NSObject, NSString) (Inherited from NSObject)
SetValueForUndefinedKey(NSObject, NSString) (Inherited from NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (Inherited from NSObject)
ShouldAutorotate() (Inherited from UIViewController)
ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation) (Inherited from UIViewController)
ShouldPerformSegue(String, NSObject) (Inherited from UIViewController)
ShouldUpdateFocus(UIFocusUpdateContext)

Called prior to the current object either losing or receiving focus. If either focus environment returns false, the focus update is canceled.

(Inherited from UIViewController)
ShowDetailViewController(UIViewController, NSObject) (Inherited from UIViewController)
ShowViewController(UIViewController, NSObject) (Inherited from UIViewController)
ShowWritingTools(NSObject) (Inherited from UIResponder)
SystemLayoutFittingSizeDidChangeForChildContentContainer(IUIContentContainer)

Notifies this container that auto layout resized a specified child container.

(Inherited from UIViewController)
ToggleBoldface(NSObject) (Inherited from UIResponder)
ToggleInspector(NSObject) (Inherited from UIResponder)
ToggleItalics(NSObject) (Inherited from UIResponder)
ToggleSidebar(NSObject) (Inherited from UIResponder)
ToggleUnderline(NSObject) (Inherited from UIResponder)
ToString()

Returns a string representation of the value of the current instance.

(Inherited from NSObject)
TouchesBegan(NSSet, UIEvent) (Inherited from UIResponder)
TouchesCancelled(NSSet, UIEvent) (Inherited from UIResponder)
TouchesEnded(NSSet, UIEvent) (Inherited from UIResponder)
TouchesEstimatedPropertiesUpdated(NSSet) (Inherited from UIResponder)
TouchesMoved(NSSet, UIEvent) (Inherited from UIResponder)
TraitCollectionDidChange(UITraitCollection)

The trait collection that describes the environmnent changed.

(Inherited from UIViewController)
Transition(UIViewController, UIViewController, Double, UIViewAnimationOptions, Action, UICompletionHandler) (Inherited from UIViewController)
TransitionAsync(UIViewController, UIViewController, Double, UIViewAnimationOptions, Action)

Used for transitioning between two view controller'€™s child view controllers.

(Inherited from UIViewController)
UnregisterForPreviewingWithContext(IUIViewControllerPreviewing) (Inherited from UIViewController)
UnregisterForTraitChanges(IUITraitChangeRegistration) (Inherited from UIViewController)
Unwind(UIStoryboardSegue, UIViewController) (Inherited from UIViewController)
Update()

Method invoked on each frame, before the GLKView's drawing method is invoked.

UpdateContentUnavailableConfiguration(UIContentUnavailableConfigurationState) (Inherited from UIViewController)
UpdateFocusIfNeeded()

If any focus environment has a pending update, this method forces an immediate focus update. Unlike SetNeedsFocusUpdate(), this method may be called by any IUIFocusEnvironment, whether it currently contains focus or not.

(Inherited from UIViewController)
UpdateProperties() (Inherited from UIViewController)
UpdatePropertiesIfNeeded() (Inherited from UIViewController)
UpdateTextAttributes(UITextAttributesConversionHandler) (Inherited from UIResponder)
UpdateTraitsIfNeeded() (Inherited from UIViewController)
UpdateUserActivityState(NSUserActivity) (Inherited from UIResponder)
UpdateViewConstraints() (Inherited from UIViewController)
UseSelectionForFind(NSObject) (Inherited from UIResponder)
ValidateCommand(UICommand) (Inherited from UIResponder)
ValueForKey(NSString) (Inherited from NSObject)
ValueForKeyPath(NSString) (Inherited from NSObject)
ValueForUndefinedKey(NSString) (Inherited from NSObject)
ViewDidAppear(Boolean) (Inherited from UIViewController)
ViewDidDisappear(Boolean) (Inherited from UIViewController)
ViewDidLayoutSubviews() (Inherited from UIViewController)
ViewDidLoad() (Inherited from UIViewController)
ViewDidUnload() (Inherited from UIViewController)
ViewIsAppearing(Boolean) (Inherited from UIViewController)
ViewLayoutMarginsDidChange() (Inherited from UIViewController)
ViewSafeAreaInsetsDidChange() (Inherited from UIViewController)
ViewWillAppear(Boolean) (Inherited from UIViewController)
ViewWillDisappear(Boolean) (Inherited from UIViewController)
ViewWillLayoutSubviews() (Inherited from UIViewController)
ViewWillTransitionToSize(CGSize, IUIViewControllerTransitionCoordinator) (Inherited from UIViewController)
ViewWillUnload() (Inherited from UIViewController)
WillAnimateFirstHalfOfRotation(UIInterfaceOrientation, Double) (Inherited from UIViewController)
WillAnimateRotation(UIInterfaceOrientation, Double) (Inherited from UIViewController)
WillAnimateSecondHalfOfRotation(UIInterfaceOrientation, Double) (Inherited from UIViewController)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (Inherited from NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
WillChangeValue(String) (Inherited from NSObject)
WillMoveToParentViewController(UIViewController) (Inherited from UIViewController)
WillRotate(UIInterfaceOrientation, Double) (Inherited from UIViewController)
WillTransitionToTraitCollection(UITraitCollection, IUIViewControllerTransitionCoordinator)

Notifies this that its trait collection will change to traitCollection, as coordinated by coordinator.

(Inherited from UIViewController)

Extension Methods

Name Description
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
GetDebugDescription(INSObjectProtocol)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
GetPencilKitResponderState(UIResponder)
GetAccessibilityCustomRotors(NSObject)

Gets the array of UIAccessibilityCustomRotor objects appropriate for this object.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Sets the array of UIAccessibilityCustomRotor objects appropriate for this object.

AccessibilityHitTest(NSObject, CGPoint, UIEvent)
GetAccessibilityNextTextNavigationElement(NSObject)
GetAccessibilityNextTextNavigationElementBlock(NSObject)
GetAccessibilityPreviousTextNavigationElement(NSObject)
GetAccessibilityPreviousTextNavigationElementBlock(NSObject)
SetAccessibilityNextTextNavigationElement(NSObject, NSObject)
SetAccessibilityNextTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityPreviousTextNavigationElement(NSObject, NSObject)
SetAccessibilityPreviousTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
GetAccessibilityTextInputResponder(NSObject)
GetAccessibilityTextInputResponderHandler(NSObject)
SetAccessibilityTextInputResponder(NSObject, IUITextInput)
SetAccessibilityTextInputResponderHandler(NSObject, UITextInputReturnHandler)
GetTransitionCoordinator(UIViewController)

The IUIViewControllerTransitionCoordinator coordinating the transition of the specified UIViewController.

GetFocusGroupIdentifier(IUIFocusEnvironment)
GetPreferredFocusedView(IUIFocusEnvironment)

If not null, indicates the child UIView that should receive focus by default.

GetSoundIdentifier(IUIFocusEnvironment, UIFocusUpdateContext)
CanPaste(IUIPasteConfigurationSupporting, NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

Paste(IUIPasteConfigurationSupporting, NSItemProvider[])

Performs the paste.

AlignCenter(IUIResponderStandardEditActions, NSObject)
AlignJustified(IUIResponderStandardEditActions, NSObject)
AlignLeft(IUIResponderStandardEditActions, NSObject)
AlignRight(IUIResponderStandardEditActions, NSObject)
Copy(IUIResponderStandardEditActions, NSObject)
Cut(IUIResponderStandardEditActions, NSObject)
DecreaseSize(IUIResponderStandardEditActions, NSObject)
Delete(IUIResponderStandardEditActions, NSObject)
Duplicate(IUIResponderStandardEditActions, NSObject)
Export(IUIResponderStandardEditActions, NSObject)
Find(IUIResponderStandardEditActions, NSObject)
FindAndReplace(IUIResponderStandardEditActions, NSObject)
FindNext(IUIResponderStandardEditActions, NSObject)
FindPrevious(IUIResponderStandardEditActions, NSObject)
IncreaseSize(IUIResponderStandardEditActions, NSObject)
MakeTextWritingDirectionLeftToRight(IUIResponderStandardEditActions, NSObject)
MakeTextWritingDirectionRightToLeft(IUIResponderStandardEditActions, NSObject)
Move(IUIResponderStandardEditActions, NSObject)
NewFromPasteboard(IUIResponderStandardEditActions, NSObject)
Paste(IUIResponderStandardEditActions, NSObject)
PasteAndGo(IUIResponderStandardEditActions, NSObject)
PasteAndMatchStyle(IUIResponderStandardEditActions, NSObject)
PasteAndSearch(IUIResponderStandardEditActions, NSObject)
PerformClose(IUIResponderStandardEditActions, NSObject)
Print(IUIResponderStandardEditActions, NSObject)
Rename(IUIResponderStandardEditActions, NSObject)
Select(IUIResponderStandardEditActions, NSObject)
SelectAll(IUIResponderStandardEditActions, NSObject)
ShowWritingTools(IUIResponderStandardEditActions, NSObject)
ToggleBoldface(IUIResponderStandardEditActions, NSObject)
ToggleInspector(IUIResponderStandardEditActions, NSObject)
ToggleItalics(IUIResponderStandardEditActions, NSObject)
ToggleSidebar(IUIResponderStandardEditActions, NSObject)
ToggleUnderline(IUIResponderStandardEditActions, NSObject)
UpdateTextAttributes(IUIResponderStandardEditActions, UITextAttributesConversionHandler)
UseSelectionForFind(IUIResponderStandardEditActions, NSObject)
CollapseSecondaryViewController(UIViewController, UIViewController, UISplitViewController)

Collapses the secondary view controller on splitViewController

GetSplitViewController(UIViewController)

Returns te split view controller for the nested view controller.

SeparateSecondaryViewControllerForSplitViewController(UIViewController, UISplitViewController)

Returns the separate secondary view controller for splitViewController.

RegisterForTraitChanges(IUITraitChangeObservable, Class[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)

Applies to

See also