Enumeration

WKVideoGravity

Constants indicating the appearance of video content.

Declaration

typedef enum WKVideoGravity : NSInteger {
    ...
} WKVideoGravity;

Topics

Constants

WKVideoGravityResizeAspect

Content is resized to fit the bounds rectangle, preserving the original aspect ratio of the content. Content that does not completely fill the bounds rectangle is centered in the partial axis.

WKVideoGravityResizeAspectFill

Content is resized to fill the bounds rectangle completely while preserving the original aspect ratio of the content. This option results in cropping of the edges of the video in the axis it exceeds.

WKVideoGravityResize

Content is resized to fit the entire bounds rectangle. This option does not preserve the original aspect ratio of the content.

See Also

Images and Movies

WKInterfaceImage

An image that can be displayed in the interface of your watchOS app.

WKImage

A wrapper for images you use with a picker interface.

WKImageAnimatable

A collection of methods you can use to control the playback of animated images.

WKInterfaceMovie

An interface element that lets you play video and audio content in your watchOS app.

WKInterfaceInlineMovie

An interface element that displays a video's poster image and supports inline playing of the video.

WKInterfaceHMCamera

An interface element that displays either a video stream or a single snapshot from an IP camera connected to HomeKit.