Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Latest commit

 

History

History

detect_if_multitasking_is_available

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
id title brief
F9255BC7-4F5D-F237-8629-D7FCDDCC265E
Detect if Multitasking is Available
Not all versions of iOS or iPhone support multi-tasking. This recipe will show how to detect if multi-tasking is supported on the device.

Recipe

Because multitasking support is dependent on both OS version and hardware, if your application relies on it and must change its behavior if multitasking support is not available, you can check to see availability via the IsMultitaskingSupported property on the UIDevice class, as shown below:

if(UIDevice.CurrentDevice.IsMultitaskingSupported)
{
   // Code dependent on multitasking.
}