public ProviderDelegate(ActiveCallManager callManager) { // Save connection to call manager CallManager = callManager; // Define handle types var handleTypes = new[] { (NSNumber)(int)CXHandleType.PhoneNumber }; // Get Image Mask var maskImage = UIImage.FromFile("telephone_receiver.png"); // Setup the initial configurations Configuration = new CXProviderConfiguration("MonkeyCall") { MaximumCallsPerCallGroup = 1, SupportedHandleTypes = new NSSet <NSNumber>(handleTypes), IconTemplateImageData = maskImage.AsPNG(), // IconMaskImageData = maskImage.AsPNG(), RingtoneSound = "musicloop01.wav" }; // Create a new provider Provider = new CXProvider(Configuration); // Attach this delegate Provider.SetDelegate(this, null); }
/// <summary> /// Allow the app to access the list of calls, by UUID /// </summary> /// <param name="callManager"></param> public ProviderDelegate(ActiveCallManager callManager) { // Save connection to call manager CallManager = callManager; // Define handle types var handleTypes = new[] { (NSNumber)(int)CXHandleType.PhoneNumber }; // Get Image Mask var maskImage = UIImage.FromFile("telephone_receiver.png"); // Setup the initial configurations Configuration = new CXProviderConfiguration(localizedName: "MonkeyCall") { MaximumCallsPerCallGroup = 1, SupportedHandleTypes = new NSSet <NSNumber>(handleTypes), //IconMaskImageData = maskImage.AsPNG(), RingtoneSound = "musicloop01.wav", //MaximumCallGroups = 3, //SupportsVideo = false }; // TODO: WWDC 2016 11:12 //if (CXProvider.authorization = Notddetermiened ) // provider.requestAuthorization // Create a new provider Provider = new CXProvider(Configuration); // Attach this delegate Provider.SetDelegate(this, null); }
public CXProvider(CXProviderConfiguration configuration) => throw new PlatformNotSupportedException(Constants.UnavailableOnMacOS);