Introduction to iOS 10
- PDF for offline use:
- Related Samples:
- Related SDKs:
Let us know how you feel about this.
last updated: 2016-09
This article introduces all of the new and modified APIs and features available in iOS 10 for Xamarin.iOS developers.
This document will cover the following topics in detail:
- Introducing iOS 10
- What's New in iOS 10
- Adapting to the True Tone Display ensures the app works well with the True Tone ambient light display adjustments.
- App Extensions have been expanded in iOS 10 to provide several new extension points.
- App Search Enhancements provided by Core Spotlight in iOS 10 introduces several app search features.
- Apple Pay Enhancements in iOS 10 allow users to make secure payments from websites and through interaction with Siri and Maps.
- Introduction to CallKit provides information on using CallKit to integrate with the iPhone UI for VOIP apps.
- Message App Integration provides the ability to integrate with the Messages app and present new functionality to the user.
- News Publisher Enhancements allows anyone to signup and deliver content to the Apple News app.
- Providing Haptic Feedback with new tactile alerts available on the iPhone 7 and iPhone 7 Plus.
- Proactive Suggestions drive app engagement by proactively presenting information to the user at appropriate times.
- Security and Privacy Enhancements have been made in iOS 10 that improve the security of the code and ensure user privacy.
- SiriKit allows the app to provide services accessible via Siri on iOS 10.
- Speech Recognition allows the app to support continuous speech recognition and transcribe speech into text.
- User Notifications supports the delivery and handling of custom local and remote notifications.
- Video Subscriber Account provides a Single-Sign-In experience for apps that present authenticated on-demand streaming or video content.
- Wide Color extends the support for extended-range pixel formats and wide-gamut color spaces throughout the system.
- Widget Enhancements have been made to ensure the widgets look great on the new iOS 10 Lock Screen.
- Additional Framework Changes have been made throughout iOS 10.
- Deprecated APIs in iOS 10.
Introducing iOS 10
With the new iOS 10 SDK, Apple has included new APIs and services that enable the developer to create new categories of apps and features. An iOS app can now extend the Messages, Siri, Phone and Maps apps to provide rich, engaging functionality to the end user that was previously unavailable.
For more information on iOS 10, please see Apple's iOS + Apps documentation.
What's New in iOS 10
Apple has added several new APIs and services in iOS 10 along with many enhancements to existing features, including:
Adapting to the True Tone Display
Apple's True Tone Display technology uses the ambient light sensor in an iOS device to dynamically adjust the color and intensity of the display to match the current lighting conditions. iOS 10 provides the new UIWhitePointAdaptivityStyle key that can be added to the app's
Info.plist file and controls how True Tone applies the standard color shift.
The following values are available:
UIWhitePointAdaptivityStyleStandardDefault - Use the standard white-point adaptivity.
UIWhitePointAdaptivityStyleReading- Used for reading-focused apps.
UIWhitePointAdaptivityStyleGame- Used for game-focused apps.
UIWhitePointAdaptivityStyleVideo- Used for video-focused apps.
UIWhitePointAdaptivityStylePhoto- Used for photography-focused apps where color fidelity is more important than environmental white-point adjustments.
Apple has provided several new App Extension Points in iOS 10:
- Call Directory
- Intents and Intents UI
- Notification Content
- Notification Services
- Sticker Pack
Additionally, 3rd party Keyboard App Extensions have the following enhancements:
- The new
DocumentInputModeproperty of the
UITextDocumentProxyclass can determine the input language of a document and allow the keyboard extension to align with that language.
- The new
HandleInputModeListmethod lets the keyboard extension display the system's keyboard picker menu in response to the Globe Key being tapped.
App Search Enhancements
Core Spotlight in iOS 10 provides several enhancements to App Search such as:
- Crowdsourced Deep-Link Popularity (with differential privacy) - Provides a way to promote deep-linked app content in search results.
- In-App Searching - Use the new
CSSearchQueryclass to provide in-app Spotlight search ability similar to how the Mail, Messages and Notes apps work.
- Search Continuation - Allows a user to start a search in Spotlight or Safari, then open an app and continue that search.
- Visualization of Validation Results - Apple's App Search API Validation Tool now displays a visual representation of a website's markup and deep-linking when preforming tests.
- Message App Image Sharing - Allows popular in-app images provided for sharing in Messages (via a Message App Extension) to appear in Spotlight searches.
To find out more, please see our App Search Enhancements guide.
Apple Pay Enhancements
Apple has made several enhancements to Apple Pay in iOS 10 that allow the user to make secure payments from websites and through interaction with Siri and Maps.
With iOS 10, several new APIs have been added that work with both iOS and watchOS to support dynamic payment networks and a new sandbox test environment.
Additionally, the PassKit framework has been expanded to support Apple Pay outside of
UIKit and to allow card issuers to present their cards from within their apps.
To find out more, please see our Apple Pay Enhancements guide.
Introduction to CallKit
The new CallKit API in iOS 10 provides a way for VOIP apps to integrate with the iPhone UI and provide a familiar interface and experience to the end user. With this API, users can view and interact with VOIP calls from the iOS device's Lock Screen and manage contacts using the Phone app's Favorites and Recents views.
Additionally, the CallKit API provides the ability to create App Extensions that can associate a phone number with a name (Caller ID) or tell the system when a number should be blocked (Call Blocking).
To find out more, please see our Introduction to Callkit guide.
Message App Integration
iOS 10 allows the inclusion of a Message App Extension in the Xamarin.iOS solution that integrates with the Messages app and presents new functionality to the user. The extension can send text, stickers, media files and interactive messages. Two types of Message App Extension are available:
- Sticker Packs - Contains a collection of stickers that the user can add to a message. Sticker Packs can be created without writing any code.
- iMessage App - Can present a custom User Interface within the Messages app for selecting stickers, entering text, including media files (with optional type conversions) and creating, editing and sending interaction messages.
To find out more, please see our Message App Integration guide.
News Publisher Enhancements
With iOS 10, Apple will allow anyone from major magazines and new organizations to bloggers and independent publishers to sign up and product and deliver content to the Apple News app. To lear more, please see Apple's News Resources documentation.
Providing Haptic Feedback
On the iPhone 7 and iPhone 7 Plus, Apple has included new haptics responses that provide additional ways to physically engage the user. Use the new tactile feedback options to get the user's attention and reinforce their actions.
Several built-in UI elements already provide haptic feedback such as Pickers, Switches and Sliders. iOS 10 now adds the ability to programmatically trigger haptics using a concrete subclass of the
To find out more, please see our Providing Haptic Feedback guide.
iOS 10 presents new ways of driving engagement to an app by allowing the system to proactively present helpful information automatically to the user at appropriate times. Just as iOS 9 provided the ability to add deep search to the app using Spotlight, Handoff and Siri Suggestions, with iOS 10 an app can expose functionality that can be presented to the user by the system from within the following locations:
- The App Switcher
- The Lock Screen
- Siri Interactions
- QuickType Suggestions
An app exposes this functionality to the system using a collection of technologies such as
NSUserActivity, web markup, Core Spotlight, MapKit, Media Player and UIKit.
To find out more, please see our Introduction to Proactive Suggestions guide.
Security and Privacy Enhancements
Apple has made several enhancements to both security and privacy in iOS 10 that will help the developer improve the security of their apps and ensure the end user's privacy.
As a result, apps running on iOS 10 (or later) must statically declare their intent to access specific features or user information by entering one or more Privacy Specific Keys in their
Info.plist files that explain to the user why the app wishes to gain access.
To find out more, please see our Security and Privacy Enhancements guide.
New to iOS 10, SiriKit allows a Xamarin.iOS app to provide services that are accessible to the user using Siri on an iOS device. This functionality is provided in one or more App Extension using the new Intents and Intents UI frameworks.
SiriKit supports the following service domains:
- Audio or video calling.
- Booking a ride.
- Managing workouts.
- Searching photos.
- Sending or receiving payments.
When the user makes a request of Siri involving one of the App Extension's services, SiriKit sends the extension an Intent object that describes the user's request along with any supporting data. The App Extension then generates the appropriate Response object for the given Intent, detailing how the extension can handle the request.
While Siri usually handles all user interaction, the App Extension can use the Intent UI framework to present a rich, custom User Interface featuring the app's branding and additional information.
To find out more, please see our Introduction to SiriKit guide.
iOS 10 includes a new Speech API that allows the app to support continuous speech recognition and transcribe speech (from live or recorded audio streams) into text.
Because speech recognition requires the transmission and temporary storage of data on Apple's servers, the app must request the user's permission to perform recognition by including the
NSSpeechRecognitionUsageDescription key in its
Info.plist file and calling the
To find out more, please see our Introduction to Speech Recognition guide.
New to iOS 10, the User Notification framework allows for the delivery and handling of local and remote notifications. Using this framework, the app or App Extension can schedule the delivery of local notifications by specifying a set of conditions such as location or time of day.
Additionally, the app or extension can receive (and potentially modify) both local and remote notifications as they are delivered to the user's iOS device.
The new User Notification UI framework allows the app or App Extension to customize the appearance of both local and remote notifications when they are presented to the user.
To find out more, please see our User Notifications Framework guide.
Video Subscriber Account
New for iOS 10, the Video Subscriber Account framework allows apps that support authenticated streaming or video-on-demand to authenticate with their cable or satellite TV provider using a Single-Sign-in experience for the end user.
iOS 10 extends the support for extended-range pixel formats and wide-gamut color spaces throughout the system including frameworks such as Core Graphics, Core Image, Metal and AVFoundation. Support for devices with wide color displays is further eased by providing this behavior throughout the entire graphics stack.
UIKit has been modified to work in the new extended sRGB colorspace, making it easier to mix colors in wide color gamuts without significant performance loss.
Apple offers the following best practices when working with wide colors:
UIColornow uses the sRGB color space and will no longer clamp values to the
1.0range. If the app relies on the previous clamp behavior, it will need to be modified for iOS 10.
- The drawing environment will be configured for the sRGB color space when performing custom
UIViewdrawing on an iPad Pro.
- If the app performs custom rendering of
UIImages, use the new UIGraphicsImageRender class to specify the use of the extended-range or standard-range formats.
- When using a low-level API such as Core Graphics or Metal to provide image processing, the developer should use an extended range color space and pixel format that supports 16-bit floating point values. Where necessary, the developer will have to manually clamp color component values.
- Core Graphics, Core Image and Metal Performance Shaders all provide new methods for converting between the two color spaces.
To find out more, please see our Introduction to Wide Color guide.
Apple has introduced several enhancements to the Widget System to ensure that the widgets look great on any background that exists on the new iOS 10 Lock Screen. The NotificationCenterVibrancyEffect property has been deprecated and has been replaced with the new WidgetPrimaryVibrancyEffect or WidgetSecondaryVibrancyEffect properties. Additionally, widgets now contain a NCWidgetDisplayMode property that allows the developer to describe how much content is available and allows the user to expand and collapse the content.
To find out more, please see our Search and Home Screen Widget Enhancements guide.
Additional Framework Changes
In addition to the major framework changes and additions listed above, Apple has made many additional minor framework changes in iOS 10.
To find out more, please see our Additional Framework Changes guide.
The following APIs have been deprecated in iOS 10:
CKFetchRecordChangesOperationclasses have been deprecated in CloudKit for iOS 10. Use the CKDiscoverAllUserIdentitiesOperation, CKUserIdentity and CKFetchRecordZoneChangesOperation classes (which support record sharing) instead.
- Several CKSubscription APIs (such as zone-based and query-based subscriptions) have been deprecated. Use the
- NSPersistentStoreCoordnator symbols related to ubiquitous content have been deprecated.
ADInterstitialAdand related symbols in the
UIViewControllerclass have been deprecated.
- SKUniform symbols related to floating point values have been deprecated.
UIUserNotificationSettingsclasses of UIKit have been deprecated. Use the User Notifications framework instead.
DidReceiveRemoteNotificationWatchKit methods have been deprecated. Use the
DidReceiveRemoteNotificationmethods of the WKExtensionDelegate have been deprecated. Create an instance of UNUserNotificationCenterDelegate that implements the appropriate methods and assign it to the
Delegateproperty of the UNUserNotificationCenter object.
- The Game Center App has been deprecated and removed from iOS. If the app uses GameKit, it must present its own interface to display GameKit features such as leaderboards, etc.
See Apple's iOS 9.3 to iOS 10.0 API Differences documentation for a complete list of deprecations.