Skip to content

Commit

Permalink
update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed Nov 23, 2016
1 parent 54bd1b1 commit dabd518
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions typings/cordova-fabric-plugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ declare module FabricPlugin {

/**
* API for interacting with the Crashlytics kit.
*
*
* https://docs.fabric.io/ios/crashlytics/index.html
*/
Crashlytics: Crashlytics;

/**
* API for interacting with the Answers kit.
*
*
* https://docs.fabric.io/ios/answers/index.html
*/
Answers: Answers;
}

/**
* API for interacting with the Crashlytics kit.
*
*
* https://docs.fabric.io/ios/crashlytics/index.html
*/
interface Crashlytics {
Expand All @@ -43,7 +43,7 @@ declare module FabricPlugin {
/**
* Used to log a non-fatal error message (Android only).
*/
sendNonFatalCrash(message: string): void;
sendNonFatalCrash(message: string, stacktrace?: any): void;

/**
* Used to record a non-fatal error message (iOS only).
Expand Down Expand Up @@ -88,18 +88,18 @@ declare module FabricPlugin {

/**
* API for interacting with the Answers kit.
*
*
* https://docs.fabric.io/ios/answers/index.html
*/
interface Answers {

/**
* Sends the Purchase tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#purchase
*
*
* @param itemPrice The item's amount in the currency specified.
* @param currency The ISO4217 currency code.
* @param success Was the purchase completed succesfully?
Expand All @@ -112,11 +112,11 @@ declare module FabricPlugin {

/**
* Sends the Add To Cart tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#add-to-cart
*
*
* @param itemPrice The item's amount in the currency specified.
* @param currency The ISO4217 currency code.
* @param itemName The human-readable name for the item.
Expand All @@ -128,11 +128,11 @@ declare module FabricPlugin {

/**
* Sends the Start Checkout tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#start-checkout
*
*
* @param totalPrice The total price of all items in cart in the currency specified.
* @param currency The ISO4217 currency code.
* @param itemCount The count of items in cart.
Expand All @@ -142,21 +142,21 @@ declare module FabricPlugin {

/**
* Sends the Search tracking event.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#search
*
*
* @param query What the user is searching for.
* @param attributes Any additional user-defined attributes to be logged.
*/
sendSearch(query: string, attributes?: Attributes): void;

/**
* Sends the Share tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#share
*
*
* @param method The method used to share content.
* @param contentName The description of the content.
* @param contentType The type or genre of content.
Expand All @@ -167,11 +167,11 @@ declare module FabricPlugin {

/**
* Sends the Rated Content tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#rated-content
*
*
* @param rating An integer rating of the content.
* @param contentName The human-readable name of content.
* @param contentType The category your item falls under.
Expand All @@ -182,11 +182,11 @@ declare module FabricPlugin {

/**
* Sends the Sign Up tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#sign-up
*
*
* @param method An optional description of the sign up method (Twitter, Facebook, etc.); defaults to "Direct".
* @param success An optional flag that indicates sign up success; defaults to true.
* @param attributes Any additional user-defined attributes to be logged.
Expand All @@ -195,11 +195,11 @@ declare module FabricPlugin {

/**
* Sends the Log In tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#log-in
*
*
* @param method An optional description of the sign in method (Twitter, Facebook, etc.); defaults to "Direct".
* @param success An optional flag that indicates sign in success; defaults to true.
* @param attributes Any additional user-defined attributes to be logged.
Expand All @@ -208,35 +208,35 @@ declare module FabricPlugin {

/**
* Sends the Invite tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#invite
*
*
* @param method An optional description of the sign in method (Twitter, Facebook, etc.); defaults to "Direct".
* @param attributes Any additional user-defined attributes to be logged.
*/
sendInvite(method?: string, attributes?: Attributes): void;

/**
* Sends the Level Start tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#level-start
*
*
* @param levelName String key describing the level.
* @param attributes Any additional user-defined attributes to be logged.
*/
sendLevelStart(levelName?: string, attributes?: Attributes): void;

/**
* Sends the Level End tracking event.
*
*
* All parameters are optional.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#level-end
*
*
* @param levelName String key describing the level.
* @param score The score for this level.
* @param success Completed the level or failed trying.
Expand All @@ -246,7 +246,7 @@ declare module FabricPlugin {

/**
* Send the Content View tracking event.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#content-view
*/
sendContentView(name: string, type?: string, id?: string, attributes?: Attributes): void;
Expand All @@ -258,7 +258,7 @@ declare module FabricPlugin {

/**
* Send a custom tracking event with the given name.
*
*
* https://docs.fabric.io/android/answers/answers-events.html#custom-event
*/
sendCustomEvent(name: string, attributes?: Attributes): void;
Expand Down

0 comments on commit dabd518

Please sign in to comment.