UIApplication.SetKeepAliveTimeout(Double, Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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