Doorbell 0.1.2

Doorbell 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2018

Maintained by Philip Manavopoulos.


Downloads

Total56,892
Week0
Month0

Installs

Apps397
Test Targets31
Watch Apps1
powered by Segment

GitHub

Stars9
Watchers4
Forks6
Issues1
Contributors5
Pull Requests1

Code

Files4
LOCLines of Code 677


Doorbell 0.1.2

Doorbell iOS SDK Status

The Doorbell iOS SDK.

Full documentation

You can view the full documentation here: https://doorbell.io/docs/ios

Installation

Include Doorbell via CocoaPods: http://cocoapods.org/?q=on%3Aios%20doorbell

Usage

In the ViewController where you want to use Doorbell, you'll need to import the library using:

#import "Doorbell.Doorbell.h"

Then when you want to show the dialog:

NSString *appId = @"123";
NSString *appKey = @"xxxxxxxxxxxxxxxxxx";

Doorbell *feedback = [Doorbell doorbellWithApiKey:appKey appId:appId];
[feedback showFeedbackDialogInViewController:self completion:^(NSError *error, BOOL isCancelled) {
    if (error) {
        NSLog(@"%@", error.localizedDescription);
    }
}];

To pre-populate the email address (if the user is logged in for example):

NSString *appId = @"123";
NSString *appKey = @"xxxxxxxxxxxxxxxxxx";

Doorbell *feedback = [Doorbell doorbellWithApiKey:appKey appId:appId];
feedback.showEmail = NO;
feedback.email = @"[email protected]";
[feedback showFeedbackDialogInViewController:self completion:^(NSError *error, BOOL isCancelled) {
    if (error) {
        NSLog(@"%@", error.localizedDescription);
    }
}];