Beispiel #1
0
 /**
  * This function set the Event
  * @param eventName {string} Name of the event
  * @param [params] {Object} Optional params
  * @return {Promise<any>} Returns a promise that resolves when event is sent
  */
 @CordovaInstance({
   successIndex: 2,
   errorIndex: 3
 })
 logEvent(eventName: string, params?: any): Promise<any> {
   return;
 }
Beispiel #2
0
 /**
  * Complete a timed event
  * @param eventName {string} Name of the event
  * @param [params] {Object} Optional params
  * @return {Promise<any>} Returns a promise that resolves when timed event is ended tracking
  */
 @CordovaInstance({
   successIndex: 2,
   errorIndex: 3
 })
 endTimedEvent(eventName: string, params?: Object): Promise<any> {
   return;
 }
Beispiel #3
0
 /**
  * This function log an error
  * @param code
  * @param message
  * @return {Promise<any>}
  */
 @CordovaInstance()
 logError(code: any, message: any): Promise<any> {
   return;
 }
Beispiel #4
0
 /**
  * Acquires token using interactive flow. It always shows UI and skips token from cache.
  *
  * @param   {String}  resourceUrl Resource identifier
  * @param   {String}  clientId    Client (application) identifier
  * @param   {String}  redirectUrl Redirect url for this application
  * @param   {String}  userId      User identifier (optional)
  * @param   {String}  extraQueryParameters
  *                                Extra query parameters (optional)
  *                                Parameters should be escaped before passing to this method (e.g. using 'encodeURI()')
  * @returns {Promise} Promise either fulfilled with AuthenticationResult object or rejected with error
  */
 @CordovaInstance({
   otherPromise: true
 })
 acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: any): Promise<AuthenticationResult> { return; }
Beispiel #5
0
 /**
  * The unsubscribe method is used when the application no longer wants to receive push notifications from a specific topic but continue to receive other push messages.
  * @param topic {string} Topic to unsubscribe from.
  * @return {Promise<any>}
  */
 @CordovaInstance()
 unsubscribe(topic: string): Promise<any> { return; }
Beispiel #6
0
 /**
  * iOS only
  * Tells the OS that you are done processing a background push notification.
  * successHandler gets called when background push processing is successfully completed.
  */
 @CordovaInstance()
 finish(): Promise<any> { return; }
Beispiel #7
0
 /**
  * Set the badge count visible when the app is not running
  *
  * The count is an integer indicating what number should show up in the badge.
  * Passing 0 will clear the badge.
  * Each notification event contains a data.count value which can be used to set the badge to correct number.
  * @param count
  */
 @CordovaInstance({
   callbackOrder: 'reverse'
 })
 setApplicationIconBadgeNumber(count?: number): Promise<any> { return; };
Beispiel #8
0
 /**
  * Adds an event listener
  * @param event {string}
  * @return {Observable<EventResponse>}
  */
 @CordovaInstance({
   observable: true,
   clearFunction: 'off',
   clearWithArgs: true
 })
 on(event: PushEvent): Observable<EventResponse> { return; }
Beispiel #9
0
 /**
  * Clear all references from the storage.
  * @returns {Promise<any>}
  */
 @CordovaInstance({
   callbackOrder: 'reverse'
 })
 clear(): Promise<any> { return; }
Beispiel #10
0
 @CordovaInstance({
   sync: true
 })
 addTransaction(transaction: (tx: SQLiteTransaction) => void): void { }