Bewerken

Delen via


UIViewController.PresentMoviePlayerViewController Method

Definition

Displays a movie controller using the standard transition.

[Foundation.Export("presentMoviePlayerViewControllerAnimated:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVPlayerViewController' (AVKit) instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PresentMoviePlayerViewController (MediaPlayer.MPMoviePlayerViewController moviePlayerViewController);
abstract member PresentMoviePlayerViewController : MediaPlayer.MPMoviePlayerViewController -> unit
override this.PresentMoviePlayerViewController : MediaPlayer.MPMoviePlayerViewController -> unit

Parameters

moviePlayerViewController
MPMoviePlayerViewController

The MPMoviePlayerViewController to be presented.

Attributes

Remarks

Along with DismissMoviePlayerViewController(), this method can be used to control the presentation and dismissal of a MPMoviePlayerViewController

Applies to