[coretelephony] Add deprecations, in favour of CallKit, for iOS 10 beta 1 (#279)
This commit is contained in:
Родитель
99a8da2359
Коммит
a79cc49cc0
|
@ -6,24 +6,28 @@ namespace XamCore.CoreTelephony {
|
|||
|
||||
public partial class CTCall {
|
||||
#if !COREBUILD
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
public string StateDialing {
|
||||
get {
|
||||
return Dlfcn.SlowGetStringConstant (Constants.CoreTelephonyLibrary, "CTCallStateDialing");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
public string StateIncoming {
|
||||
get {
|
||||
return Dlfcn.SlowGetStringConstant (Constants.CoreTelephonyLibrary, "CTCallStateIncoming");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
public string StateConnected {
|
||||
get {
|
||||
return Dlfcn.SlowGetStringConstant (Constants.CoreTelephonyLibrary, "CTCallStateConnected");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
public string StateDisconnected {
|
||||
get {
|
||||
return Dlfcn.SlowGetStringConstant (Constants.CoreTelephonyLibrary, "CTCallStateDisconnected");
|
||||
|
|
|
@ -6,9 +6,11 @@ namespace XamCore.CoreTelephony {
|
|||
[Since (4,0)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
interface CTCall {
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
[Export ("callID")]
|
||||
string CallID { get; }
|
||||
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
[Export ("callState")]
|
||||
string CallState { get; }
|
||||
|
||||
|
@ -91,6 +93,7 @@ namespace XamCore.CoreTelephony {
|
|||
[BaseType (typeof (NSObject))]
|
||||
[Since (4,0)]
|
||||
interface CTCallCenter {
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
[NullAllowed] // by default this property is null
|
||||
[Export ("callEventHandler")]
|
||||
#if XAMCORE_2_0
|
||||
|
@ -99,6 +102,7 @@ namespace XamCore.CoreTelephony {
|
|||
CTCallEventHandler CallEventHandler { get; set; }
|
||||
#endif
|
||||
|
||||
[Availability (Deprecated = Platform.iOS_10_0, Message = "Use CallKit")]
|
||||
[Export ("currentCalls")]
|
||||
NSSet CurrentCalls { get; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче