File tree Expand file tree Collapse file tree 6 files changed +65
-0
lines changed Expand file tree Collapse file tree 6 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ set(SWIFT_API_NOTES_INPUTS
2
2
AVFoundation
3
3
AppKit
4
4
AudioToolbox
5
+ CallKit
5
6
CloudKit
6
7
CoreBluetooth
7
8
CoreData
Original file line number Diff line number Diff line change
1
+ ---
2
+ Name: CallKit
3
+ Classes:
4
+ - Name: CXProviderConfiguration
5
+ Properties:
6
+ - Name: 'supportedHandleTypes'
7
+ SwiftPrivate: true
8
+ Tags:
9
+ - Name: CXErrorCode
10
+ NSErrorDomain: CXErrorDomain
11
+ - Name: CXErrorCodeIncomingCallError
12
+ NSErrorDomain: CXErrorDomainIncomingCall
13
+ - Name: CXErrorCodeRequestTransactionError
14
+ NSErrorDomain: CXErrorDomainRequestTransaction
15
+ - Name: CXErrorCodeCallDirectoryManagerError
16
+ NSErrorDomain: CXErrorDomainCallDirectoryManager
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ endif()
11
11
# Please keep this list sorted.
12
12
add_subdirectory (AppKit )
13
13
add_subdirectory (AssetsLibrary )
14
+ add_subdirectory (CallKit )
14
15
add_subdirectory (CoreAudio )
15
16
add_subdirectory (CoreData )
16
17
add_subdirectory (CoreGraphics )
Original file line number Diff line number Diff line change
1
+ add_swift_library (swiftCallKit ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY
2
+ CallKit.swift
3
+ CXProviderConfiguration.swift
4
+
5
+ TARGET_SDKS IOS IOS_SIMULATOR
6
+ SWIFT_MODULE_DEPENDS Foundation
7
+ FRAMEWORK_DEPENDS_WEAK CallKit )
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See http://swift.org/LICENSE.txt for license information
9
+ // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ //===----------------------------------------------------------------------===//
12
+
13
+ @_exported import CallKit
14
+ import Foundation
15
+
16
+ @available ( iOS 10 . 0 , * )
17
+ extension CXProviderConfiguration {
18
+ @nonobjc
19
+ public final var supportedHandleTypes : Set < CXHandleType > {
20
+ get {
21
+ return Set ( __supportedHandleTypes. map {
22
+ CXHandleType ( rawValue: $0. intValue) !
23
+ } )
24
+ }
25
+ set {
26
+ __supportedHandleTypes = Set ( newValue. map { $0. rawValue } )
27
+ }
28
+ }
29
+ }
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See http://swift.org/LICENSE.txt for license information
9
+ // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ //===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments