Class: CTCarrier

Inherits:
NSObject show all

Overview

Use the CTCarrier class to obtain information about the user’s home cellular service provider, such as its unique identifier and whether or not it allows VoIP (Voice over Internet Protocol) calls on its network.

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from NSObject

#!, #!=, #!~, #, #==, #===, #=~, #Rational, #__callee__, #__method__, #__send__, #__type__, `, alloc, allocWithZone:, #autoContentAccessingProxy, autoload, autoload?, autorelease_pool, #awakeAfterUsingCoder:, binding, block_given?, caller, cancelPreviousPerformRequestsWithTarget:, cancelPreviousPerformRequestsWithTarget:selector:object:, catch, class, classFallbacksForKeyedArchiver, #classForCoder, #classForKeyedArchiver, classForKeyedUnarchiver, #clone, conformsToProtocol:, #copy, copyWithZone:, #dealloc, #define_singleton_method, description, display, #doesNotRecognizeSelector:, #dup, #enum_for, #eql?, #equal?, #extend, fail, #finalize, format, #forwardInvocation:, #forwardingTargetForSelector:, framework, #freeze, #frozen?, getpass, gets, global_variables, #init, initialize, #initialize_clone, #initialize_copy, #initialize_dup, #inspect, instanceMethodForSelector:, instanceMethodSignatureForSelector:, #instance_eval, #instance_exec, #instance_of?, #instance_variable_defined?, #instance_variable_get, #instance_variable_set, #instance_variables, instancesRespondToSelector:, isSubclassOfClass:, #is_a?, iterator?, #kind_of?, lambda, load, load_bridge_support_file, load_plist, local_variables, loop, #method, #methodForSelector:, #methodSignatureForSelector:, #methods, #mutableCopy, mutableCopyWithZone:, new, #nil?, open, p, #performSelector:onThread:withObject:waitUntilDone:, #performSelector:onThread:withObject:waitUntilDone:modes:, #performSelector:withObject:afterDelay:, #performSelector:withObject:afterDelay:inModes:, #performSelectorInBackground:withObject:, #performSelectorOnMainThread:withObject:waitUntilDone:, #performSelectorOnMainThread:withObject:waitUntilDone:modes:, print, printf, #private_methods, proc, #protected_methods, #public_method, #public_methods, #public_send, putc, puts, raise, rand, readline, readlines, #replacementObjectForCoder:, #replacementObjectForKeyedArchiver:, require, resolveClassMethod:, resolveInstanceMethod:, #respond_to?, #respond_to_missing?, select, #send, setVersion:, #singleton_methods, sprintf, srand, superclass, #taint, #tainted?, #tap, test, throw, #to_plist, #to_s, trace_var, trap, #trust, #untaint, untrace_var, #untrust, #untrusted?, version

Constructor Details

This class inherits a constructor from NSObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class NSObject

Instance Attribute Details

- (Boolean) allowsVOIP (readonly)

Indicates if the carrier allows VoIP calls to be made on its network. (read-only) A read-only Boolean value that is YES if the carrier allows VoIP calls to be made on its network, or NO if not.If you configure a device for a carrier and then remove the SIM card, this property retains the Boolean value indicating the carrier’s policy regarding VoIP.

Returns:

  • (Boolean)

- (String) carrierName (readonly)

The name of the user’s home cellular service provider. (read-only) This string is provided by the carrier and formatted for presentation to the user. The value does not change if the user is roaming; it always represents the provider with whom the user has an account.If you configure a device for a carrier and then remove the SIM card, this property retains the name of the carrier.The value for this property is nil if the device was never configured for a carrier.

Returns:

- (String) isoCountryCode (readonly)

The ISO country code for the user’s cellular service provider. (read-only)

This property uses the ISO 3166-1 country code representation.The value for this property is nil if any of the following apply:The device is in Airplane mode.There is no SIM card in the device.The device is outside of cellular service range.

Returns:

- (String) mobileCountryCode (readonly)

The mobile country code (MCC) for the user’s cellular service provider. (read-only) A read-only NSString object that contains the numeric mobile country code for the user’s cellular service provider. MCCs are defined by ITU-T Recommendation E.212, “List of Mobile Country or Geographical Area Codes.” Typing this property as an NSString object, rather than a number type, ensures that leading zeroes in MCCs are respected.The value for this property is nil if any of the following apply:The device is in Airplane mode.There is no SIM card in the device.The device is outside of cellular service range.

Returns:

- (String) mobileNetworkCode (readonly)

The mobile network code (MNC) for the user’s cellular service provider. (read-only) A read-only NSString object that represents the numeric mobile network code for the user’s cellular service provider. Typing this property as an NSString object, rather than a number type, ensures that leading zeroes in MNCs are respected.The value for this property is nil if any of the following apply:The device is in Airplane mode.There is no SIM card in the device.The device is outside of cellular service range.

Returns: