1 | import { IonicNativePlugin } from '@ionic-native/core';
|
2 | import { Observable } from 'rxjs';
|
3 | /**
|
4 | * @name Google Nearby
|
5 | * @description
|
6 | * This plugin adds support for the Google Nearby Messages API.
|
7 | *
|
8 | * @usage
|
9 | * ```typescript
|
10 | * import { GoogleNearby } from '@ionic-native/google-nearby/ngx';
|
11 | *
|
12 | *
|
13 | * constructor(private googleNearby: GoogleNearby) { }
|
14 | *
|
15 | * this.googleNearby.publish('Hello')
|
16 | * .then((res: any) => console.log(res))
|
17 | * .catch((error: any) => console.error(error));
|
18 | *
|
19 | * this.googleNearby.subscribe()
|
20 | * .then((res: any) => console.log(res))
|
21 | * .catch((error: any) => console.error(error));
|
22 | * ```
|
23 | */
|
24 | export declare class GoogleNearbyOriginal extends IonicNativePlugin {
|
25 | /**
|
26 | * Publish a message
|
27 | * @param message {string} Message to publish
|
28 | * @return {Promise<any>} Returns a promise that resolves when the message got published
|
29 | */
|
30 | publish(message: string): Promise<any>;
|
31 | /**
|
32 | * Subscribe to receive messages
|
33 | * @return {Observable<any>} Returns an observable that emits received messages
|
34 | */
|
35 | subscribe(): Observable<any>;
|
36 | }
|
37 |
|
38 | export declare const GoogleNearby: GoogleNearbyOriginal; |
\ | No newline at end of file |