UIApplication.SetKeepAliveTimeout(Double, Action) Method

Definition

In older iOS versions, this configures a periodic handler for VoIP apps.

[Foundation.Export("setKeepAliveTimeout:handler:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'PushKit' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SetKeepAliveTimeout (double timeout, Action handler);
abstract member SetKeepAliveTimeout : double * Action -> bool
override this.SetKeepAliveTimeout : double * Action -> bool

Parameters

timeout
Double

Maximum interval (in seconds) at which the app should be awakened to check its VoIP connection.

handler
Action

Action that performs all tasks needed to maintain the VoIP network connection.

This parameter can be null.

Returns

true if installed, false if not.

Attributes

Applies to