Bearbeiten

Freigeben über


CADisplayLink.FrameInterval Property

Definition

Developers should not use this deprecated property. Developers should use 'PreferredFramesPerSecond' property.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")]
public virtual nint FrameInterval { [Foundation.Export("frameInterval")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")] get; [Foundation.Export("setFrameInterval:")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PreferredFramesPerSecond' property.")] set; }
member this.FrameInterval : nint with get, set

Property Value

System.System.IntPtr System.nativeint
Attributes

Remarks

The default value is one, which means that your code is invoked once each time that a screen refresh will take place. If you set this value to two, then your method will only be invoked half the time (once every two frames) and so on.

In general, you should not skip frames. If your software can not keep up with the frame rate, it is better to increase the frame interval and deliver a consistent set of updates.

Applies to