Skip to content

Instantly share code, notes, and snippets.

@inC3ASE
Created October 14, 2016 01:13
Show Gist options
  • Save inC3ASE/6643fca31cfbe107932e9f5ff2b75202 to your computer and use it in GitHub Desktop.
Save inC3ASE/6643fca31cfbe107932e9f5ff2b75202 to your computer and use it in GitHub Desktop.
CoreTelephony.framework
/*
* CTCarrier.h
* CoreTelephony
*
* Copyright 2009 Apple, Inc.. All rights reserved.
*
*/
#import <Foundation/Foundation.h>
#import <CoreTelephony/CoreTelephonyDefines.h>
NS_ASSUME_NONNULL_BEGIN
CORETELEPHONY_CLASS_AVAILABLE(4_0)
@interface CTCarrier : NSObject
/*
* carrierName
*
* Discussion:
* An NSString containing the name of the subscriber's cellular service provider.
*/
@property (nonatomic, readonly, retain, nullable) NSString *carrierName __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
/*
* mobileCountryCode
*
* Discussion:
* An NSString containing the mobile country code for the subscriber's
* cellular service provider, in its numeric representation
*/
@property (nonatomic, readonly, retain, nullable) NSString *mobileCountryCode __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
/*
* mobileNetworkCode
*
* Discussion:
* An NSString containing the mobile network code for the subscriber's
* cellular service provider, in its numeric representation
*/
@property (nonatomic, readonly, retain, nullable) NSString *mobileNetworkCode __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
/*
* isoCountryCode
*
* Discussion:
* Returns an NSString object that contains country code for
* the subscriber's cellular service provider, represented as an ISO 3166-1
* country code string
*/
@property (nonatomic, readonly, retain, nullable) NSString* isoCountryCode __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
/*
* allowsVOIP
*
* Discussion:
* A BOOL value that is YES if this carrier allows VOIP calls to be
* made on its network, NO otherwise.
*/
@property (nonatomic, readonly, assign) BOOL allowsVOIP __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
@end
NS_ASSUME_NONNULL_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment