mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-07-16 00:00:04 +08:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1c248ebc3 | ||
|
|
6378006765 |
@@ -1664,16 +1664,6 @@ class AirshipChannel {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits for the channel ID to be created
|
||||
* Returns the channel ID. If the channel ID is not yet created, the function will wait for it before returning.
|
||||
* After the channel ID is created, this method functions the same as getChannelId().
|
||||
*/
|
||||
@CordovaInstance()
|
||||
waitForChannelId(): Promise<string> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a list of the channel's subscriptions.
|
||||
*/
|
||||
|
||||
@@ -19,6 +19,11 @@ declare let mixpanel: any;
|
||||
* .then(onSuccess)
|
||||
* .catch(onError);
|
||||
*
|
||||
* // For EU data residency, pass a custom server URL:
|
||||
* this.mixpanel.init(token, true, 'https://api-eu.mixpanel.com')
|
||||
* .then(onSuccess)
|
||||
* .catch(onError);
|
||||
*
|
||||
* ```
|
||||
* @classes
|
||||
* MixpanelPeople
|
||||
@@ -76,10 +81,15 @@ export class Mixpanel extends AwesomeCordovaNativePlugin {
|
||||
/**
|
||||
*
|
||||
* @param token {string}
|
||||
* @param trackAutomaticEvents {boolean} optional, defaults to true (Android only)
|
||||
* @param serverUrl {string} optional, custom server URL for EU data residency (e.g. 'https://api-eu.mixpanel.com')
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
@Cordova()
|
||||
init(token: string): Promise<any> {
|
||||
@Cordova({
|
||||
successIndex: 1,
|
||||
errorIndex: 2,
|
||||
})
|
||||
init(token: string, trackAutomaticEvents?: boolean, serverUrl?: string): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user