一.新增框架简介
1. #import <Speech/Speech.h>
这个是苹果推出的语音识别框架,识别的语音数据保存在苹果服务器上
2.#import <UserNotifications/UserNotifications.h>
#import <UserNotificationsUI/UNNotificationContentExtension.h>
可以自定义本地推送和远程推送UI界面,还可以通过 APP extension 自定义UI界面和交互操作
3. #import <Messages/Messages.h>
可以通过APP extension 和Messages进行交互,并可以让用户发送文字,贴纸,媒体文件
You can create two types of app extensions:
A Sticker pack provides a set of stickers that users can add to their Messages content.
An iMessage app lets you present a custom user interface within the Messages app, create a sticker browser, include text, stickers, and media files within a conversation, and create, send, and update interactive messages.
https://developer.apple.com/reference/messages
4. #import <CallKit/CallKit.h>
可以使VoIP apps 在锁屏界面接听 VoIP电话,还可以在app extensions中进行来电拦截和来电识别(这个是苹果和腾讯手机管家合作开发的)
5. #import <Intents/Intents.h>
#import <IntentsUI/IntentsUI.h> (SiriKit)
使用该框架可以通过Siri实现以下功能:
1)音视频通话
2)发消息
3)支付
4)查找照片
5)户外锻炼
6)预约车程
https://developer.apple.com/reference/intents
6. #import <VideoSubscriberAccount/VideoSubscriberAccount.h>
这个框架是给有线电视和卫星电视进行身份验证和授权(大概没有什么用)
7.Wide Color
可以使用更广泛的色域的色彩搭配sRGB颜色。
+ (UIColor *)colorWithDisplayP3Red:(CGFloat)displayP3Red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha NS_AVAILABLE_IOS(10_0);
- (UIColor *)initWithDisplayP3Red:(CGFloat)displayP3Red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha NS_AVAILABLE_IOS(10_0);
二.相关API头文件
//
// Speech.h
//
// Copyright (c) 2016 Apple, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Speech/SFSpeechRecognitionResult.h>
#import <Speech/SFSpeechRecognitionRequest.h>
#import <Speech/SFSpeechRecognitionTask.h>
#import <Speech/SFSpeechRecognitionTaskHint.h>
#import <Speech/SFSpeechRecognizer.h>
#import <Speech/SFTranscriptionSegment.h>
#import <Speech/SFTranscription.h>
//
// UserNotifications.h
// UserNotifications
//
// Copyright © 2015 Apple Inc. All rights reserved.
//
#import <UserNotifications/NSString+UserNotifications.h>
#import <UserNotifications/UNError.h>
#import <UserNotifications/UNNotification.h>
#import <UserNotifications/UNNotificationAction.h>
#import <UserNotifications/UNNotificationAttachment.h>
#import <UserNotifications/UNNotificationCategory.h>
#import <UserNotifications/UNNotificationContent.h>
#import <UserNotifications/UNNotificationRequest.h>
#import <UserNotifications/UNNotificationResponse.h>
#import <UserNotifications/UNNotificationSettings.h>
#import <UserNotifications/UNNotificationSound.h>
#import <UserNotifications/UNNotificationTrigger.h>
#import <UserNotifications/UNUserNotificationCenter.h>
#import <UserNotifications/UNNotificationServiceExtension.h>
//
// UserNotificationsUI.h
// UserNotificationsUI
//
// Copyright © 2015 Apple. All rights reserved.
//
#import <UserNotificationsUI/UNNotificationContentExtension.h>
//
// Messages.h
// Messages
//
// Copyright © 2016 Apple Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Messages/MSMessagesAppViewController.h>
#import <Messages/MSConversation.h>
#import <Messages/MSSession.h>
#import <Messages/MSMessage.h>
#import <Messages/MSMessageLayout.h>
#import <Messages/MSMessageTemplateLayout.h>
#import <Messages/MSSticker.h>
#import <Messages/MSStickerView.h>
#import <Messages/MSStickerBrowserViewDataSource.h>
#import <Messages/MSStickerBrowserView.h>
#import <Messages/MSStickerBrowserViewController.h>
//
// CallKit.h
// CallKit
//
// Copyright © 2015 Apple. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CallKit/CXBase.h>
#import <CallKit/CXAuthorization.h>
#import <CallKit/CXCallUpdate.h>
#import <CallKit/CXError.h>
#import <CallKit/CXAction.h>
#import <CallKit/CXCallAction.h>
#import <CallKit/CXStartCallAction.h>
#import <CallKit/CXAnswerCallAction.h>
#import <CallKit/CXEndCallAction.h>
#import <CallKit/CXSetHeldCallAction.h>
#import <CallKit/CXSetMutedCallAction.h>
#import <CallKit/CXSetGroupCallAction.h>
#import <CallKit/CXPlayDTMFCallAction.h>
#import <CallKit/CXTransaction.h>
#import <CallKit/CXProvider.h>
#import <CallKit/CXProviderConfiguration.h>
#import <CallKit/CXCall.h>
#import <CallKit/CXCallObserver.h>
#import <CallKit/CXCallController.h>
//
// Intents.h
// Intents
//
// Copyright © 2016 Apple. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Intents.
FOUNDATION_EXPORT double IntentsVersionNumber;
//! Project version string for Intents.
FOUNDATION_EXPORT const unsigned char IntentsVersionString[];
#ifndef __INTENTS_INDIRECT__
#define __INTENTS_INDIRECT__
#endif
// Base
#import <Intents/INIntent.h>
#import <Intents/INIntentErrors.h>
#import <Intents/INIntentIdentifiers.h>
#import <Intents/INIntentResponse.h>
#import <Intents/INIntentResolutionResult.h>
#import <Intents/INIntentResolutionResultUnsupportedReason.h>
#import <Intents/INDomainHandling.h>
#import <Intents/INInteraction.h>
// Intents & Intent Responses
#import <Intents/INIntents.h>
#import <Intents/INIntentResponses.h>
// Extension
#import <Intents/INExtension.h>
// Common Types
#import <Intents/INCurrencyAmount.h>
#import <Intents/INDateComponentsRange.h>
#import <Intents/INImage.h>
#import <Intents/INPaymentMethod.h>
#import <Intents/INPaymentMethodType.h>
#import <Intents/INPerson.h>
// Common Resolution Results
#import <Intents/INBooleanResolutionResult.h>
#import <Intents/INCurrencyAmountResolutionResult.h>
#import <Intents/INDateComponentsRangeResolutionResult.h>
#import <Intents/INDoubleResolutionResult.h>
#import <Intents/INIntegerResolutionResult.h>
#import <Intents/INPaymentMethodResolutionResult.h>
#import <Intents/INPersonResolutionResult.h>
#import <Intents/INPlacemarkResolutionResult.h>
#import <Intents/INStringResolutionResult.h>
// Calls Domain
#import <Intents/INSearchCallHistoryIntent.h>
#import <Intents/INSearchCallHistoryIntentResponse.h>
#import <Intents/INStartAudioCallIntent.h>
#import <Intents/INStartAudioCallIntentResponse.h>
#import <Intents/INStartVideoCallIntent.h>
#import <Intents/INStartVideoCallIntentResponse.h>
#import <Intents/INCallRecordType.h>
#import <Intents/INCallRecordTypeResolutionResult.h>
#import <Intents/INCallCapabilityOptions.h>
#import <Intents/INCallCapabilityOptionsResolutionResult.h>
// CarPlay & Radio Domains
#import <Intents/INSetAudioSourceInCarIntent.h>
#import <Intents/INSetAudioSourceInCarIntentResponse.h>
#import <Intents/INSetClimateSettingsInCarIntent.h>
#import <Intents/INSetClimateSettingsInCarIntentResponse.h>
#import <Intents/INSetDefrosterSettingsInCarIntent.h>
#import <Intents/INSetDefrosterSettingsInCarIntentResponse.h>
#import <Intents/INSetSeatTemperatureInCarIntent.h>
#import <Intents/INSetSeatTemperatureInCarIntentResponse.h>
#import <Intents/INSetRadioStationIntent.h>
#import <Intents/INSetRadioStationIntentResponse.h>
#import <Intents/INCarAudioSource.h>
#import <Intents/INCarAudioSourceResolutionResult.h>
#import <Intents/INCarAirCirculationMode.h>
#import <Intents/INCarAirCirculationModeResolutionResult.h>
#import <Intents/INCarDefroster.h>
#import <Intents/INCarDefrosterResolutionResult.h>
#import <Intents/INCarSeat.h>
#import <Intents/INCarSeatResolutionResult.h>
#import <Intents/INRadioType.h>
#import <Intents/INRadioTypeResolutionResult.h>
#import <Intents/INRelativeReference.h>
#import <Intents/INRelativeReferenceResolutionResult.h>
#import <Intents/INRelativeSetting.h>
#import <Intents/INRelativeSettingResolutionResult.h>
#import <Intents/INTemperatureMode.h>
#import <Intents/INTemperatureModeResolutionResult.h>
#import <Intents/INTemperatureUnit.h>
#import <Intents/INTemperatureUnitResolutionResult.h>
// Messages Domain
#import <Intents/INSearchForMessagesIntent.h>
#import <Intents/INSearchForMessagesIntentResponse.h>
#import <Intents/INSendMessageIntent.h>
#import <Intents/INSendMessageIntentResponse.h>
#import <Intents/INSetMessageAttributeIntent.h>
#import <Intents/INSetMessageAttributeIntentResponse.h>
#import <Intents/INMessage.h>
#import <Intents/INMessageAttribute.h>
#import <Intents/INMessageAttributeResolutionResult.h>
#import <Intents/INMessageAttributeOptions.h>
#import <Intents/INMessageAttributeOptionsResolutionResult.h>
#import <Intents/INMessageService.h>
// Payments Domain
#import <Intents/INSendPaymentIntent.h>
#import <Intents/INSendPaymentIntentResponse.h>
#import <Intents/INRequestPaymentIntent.h>
#import <Intents/INRequestPaymentIntentResponse.h>
#import <Intents/INPaymentRecord.h>
#import <Intents/INPaymentStatus.h>
// Photos Domain
#import <Intents/INSearchForPhotosIntent.h>
#import <Intents/INSearchForPhotosIntentResponse.h>
#import <Intents/INStartPhotoPlaybackIntent.h>
#import <Intents/INStartPhotoPlaybackIntentResponse.h>
#import <Intents/INPhotoAttributeOptions.h>
#import <Intents/INPhotoAttributeOptionsResolutionResult.h>
// Ridesharing Domain
#import <Intents/INListRideOptionsIntent.h>
#import <Intents/INListRideOptionsIntentResponse.h>
#import <Intents/INRequestRideIntent.h>
#import <Intents/INRequestRideIntentResponse.h>
#import <Intents/INGetRideStatusIntent.h>
#import <Intents/INGetRideStatusIntentResponse.h>
#import <Intents/INPriceRange.h>
#import <Intents/INRideOption.h>
#import <Intents/INRideStatus.h>
#import <Intents/INRidePhase.h>
#import <Intents/INRideDriver.h>
#import <Intents/INRideVehicle.h>
#import <Intents/INRideFareLineItem.h>
#import <Intents/INRidePartySizeOption.h>
// Workouts Domain
#import <Intents/INStartWorkoutIntent.h>
#import <Intents/INStartWorkoutIntentResponse.h>
#import <Intents/INPauseWorkoutIntent.h>
#import <Intents/INPauseWorkoutIntentResponse.h>
#import <Intents/INEndWorkoutIntent.h>
#import <Intents/INEndWorkoutIntentResponse.h>
#import <Intents/INCancelWorkoutIntent.h>
#import <Intents/INCancelWorkoutIntentResponse.h>
#import <Intents/INResumeWorkoutIntent.h>
#import <Intents/INResumeWorkoutIntentResponse.h>
#import <Intents/INWorkoutGoalUnitType.h>
#import <Intents/INWorkoutGoalUnitTypeResolutionResult.h>
#import <Intents/INWorkoutLocationType.h>
#import <Intents/INWorkoutLocationTypeResolutionResult.h>
// Restaurant Booking
#import <Intents/INIntentRestaurantReservation.h>
// User Vocabulary
#import <Intents/INVocabulary.h>
// Utilities
#import <Intents/INSiriAuthorizationStatus.h>
#import <Intents/INPreferences.h>
#import <Intents/CLPlacemark+IntentsAdditions.h>
#import <Intents/NSUserActivity+IntentsAdditions.h>
//
// IntentsUI.h
// IntentsUI
//
// Copyright © 2016 Apple. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for IntentsUI.
FOUNDATION_EXPORT double IntentsUIVersionNumber;
//! Project version string for IntentsUI.
FOUNDATION_EXPORT const unsigned char IntentsUIVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <IntentsUI/PublicHeader.h>
#import <IntentsUI/INImage+IntentsUI.h>
#import <IntentsUI/INUIHostedViewControlling.h>
#import <IntentsUI/INUIHostedViewSiriProviding.h>
//
// VideoSubscriberAccount.h
// VideoSubscriberAccount
//
// Copyright © 2016 Apple Inc. All rights reserved.
//
#import <VideoSubscriberAccount/VideoSubscriberAccountDefines.h>
#import <VideoSubscriberAccount/VideoSubscriberAccountErrors.h>
#import <VideoSubscriberAccount/VSAccountManager.h>
#import <VideoSubscriberAccount/VSAccountManagerResult.h>
#import <VideoSubscriberAccount/VSAccountMetadata.h>
#import <VideoSubscriberAccount/VSAccountMetadataRequest.h>