docs(all): standardizes and adds return types, also some param fixes

This commit is contained in:
Alex Muramoto
2016-11-29 16:40:50 -06:00
parent b7a562053a
commit 3da2831779
88 changed files with 635 additions and 347 deletions
+16 -16
View File
@@ -25,7 +25,7 @@ export class GoogleAnalytics {
* https://developers.google.com/analytics/devguides/collection/analyticsjs/
* @param {string} id Your Google Analytics Mobile App property
* @param {number} interval Optional dispatch period in seconds. Defaults to 30.
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static startTrackerWithId(id: string, interval?: number): Promise<any> { return; }
@@ -33,7 +33,7 @@ export class GoogleAnalytics {
/**
* Enabling Advertising Features in Google Analytics allows you to take advantage of Remarketing, Demographics & Interests reports, and more
* @param allow {boolean}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static setAllowIDFACollection(allow: boolean): Promise<any> { return; }
@@ -42,7 +42,7 @@ export class GoogleAnalytics {
* Set a UserId
* https://developers.google.com/analytics/devguides/collection/analyticsjs/user-id
* @param {string} id User ID
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static setUserId(id: string): Promise<any> { return; }
@@ -50,7 +50,7 @@ export class GoogleAnalytics {
/**
* Set a anonymize Ip address
* @param anonymize {boolean} Set to true to anonymize the IP Address
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static setAnonymizeIp(anonymize: boolean): Promise<any> { return; }
@@ -58,7 +58,7 @@ export class GoogleAnalytics {
/**
* Sets the app version
* @param appVersion {string} App version
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static setAppVersion(appVersion: string): Promise<any> { return; }
@@ -66,14 +66,14 @@ export class GoogleAnalytics {
/**
* Set OptOut
* @param optout {boolean}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static setOptOut(optout: boolean): Promise<any> { return; }
/**
* Enable verbose logging
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static debugMode(): Promise<any> { return; }
@@ -82,7 +82,7 @@ export class GoogleAnalytics {
* Track custom metric
* @param key {string}
* @param value {any}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova({
successIndex: 2,
@@ -97,7 +97,7 @@ export class GoogleAnalytics {
* @param title {string} Screen title
* @param campaignUrl {string} Campaign url for measuring referrals
* @param newSession {boolean} Set to true to create a new session
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova({
successIndex: 3,
@@ -110,7 +110,7 @@ export class GoogleAnalytics {
* https://developers.google.com/analytics/devguides/platform/customdimsmets
* @param key {string}
* @param value {string}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static addCustomDimension(key: number, value: string): Promise<any> { return; }
@@ -123,7 +123,7 @@ export class GoogleAnalytics {
* @param label {string}
* @param value {number}
* @param newSession {boolean} Set to true to create a new session
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova({
successIndex: 5,
@@ -135,7 +135,7 @@ export class GoogleAnalytics {
* Track an exception
* @param description {string}
* @param fatal {boolean}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static trackException(description: string, fatal: boolean): Promise<any> { return; }
@@ -146,7 +146,7 @@ export class GoogleAnalytics {
* @param intervalInMilliseconds {number}
* @param variable {string}
* @param label {string}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static trackTiming(category: string, intervalInMilliseconds: number, variable: string, label: string): Promise<any> { return; }
@@ -160,7 +160,7 @@ export class GoogleAnalytics {
* @param tax {number}
* @param shipping {number}
* @param currencyCode {string}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static addTransaction(id: string, affiliation: string, revenue: number, tax: number, shipping: number, currencyCode: string): Promise<any> { return; }
@@ -175,7 +175,7 @@ export class GoogleAnalytics {
* @param {number} price
* @param {number} quantity
* @param {string} currencyCode
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static addTransactionItem(id: string, name: string, sku: string, category: string, price: number, quantity: number, currencyCode: string): Promise<any> { return; }
@@ -183,7 +183,7 @@ export class GoogleAnalytics {
/**
* Enable/disable automatic reporting of uncaught exceptions
* @param shouldEnable {boolean}
* @return {Promise<any>}
* @returns {Promise<any>}
*/
@Cordova()
static enableUncaughtExceptionReporting(shouldEnable: boolean): Promise<any> { return; }