Skip to content

Helper to call a phone number from an iPhone using the telpromp scheme.

License

Notifications You must be signed in to change notification settings

acerbetti/ACETelPrompt

Repository files navigation

ACETelPrompt

ACETelPrompt is an helper to easily make phone call using the telprompt scheme.

Using telprompt first gives a prompt asking whether the user wants to make the call or cancel it. If the user selects the call option from the prompt that is displayed, the call is placed and the control returns back to the app after the call is finished.

The helper uses blocks to get the user choice also logging the phone duration.

Example Usage

    [ACETelPrompt callPhoneNumber:self.phoneField.text
                             call:^(NSTimeInterval duration) {
                                 NSLog(@"User made a call of %.1f seconds", duration);
                                 
                             } cancel:^{
                                 NSLog(@"User cancelled the call");
                             }];

CocoaPods

  1. Add pod 'ACETelPrompt' to your Podfile.
  2. Run pod install

License

ACETelPrompt is available under the MIT license. See the LICENSE file for more info.

About

Helper to call a phone number from an iPhone using the telpromp scheme.

Resources

License

Stars

Watchers

Forks

Packages

No packages published