-
Notifications
You must be signed in to change notification settings - Fork 9
/
nativescript-ibeacon.android.d.ts
39 lines (39 loc) · 1.66 KB
/
nativescript-ibeacon.android.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { Beacon, BeaconCallback, BeaconRegion, Common } from './nativescript-ibeacon.common';
export declare class LocationService extends java.lang.Object {
private beaconManager;
delegate: BeaconCallback;
private context;
private beaconManagerReady;
private rangeNotifierAdded;
private monitorNotifierAdded;
private pendingBeaconRegion;
private pendingBeaconMonitor;
constructor(context: android.content.Context);
bind(): void;
unbind(): void;
private getBeaconManager();
startRanging(beaconRegion: BeaconRegion): void;
stopRanging(beaconRegion: BeaconRegion): void;
startMonitoring(beaconRegion: BeaconRegion): void;
stopMonitoring(beaconRegion: BeaconRegion): void;
onBeaconServiceConnect(): void;
getRegionFromBeaconRegion(beaconRegion: BeaconRegion): any;
getBeaconRegionFromRegion(region: any): BeaconRegion;
getBeaconFromNativeBeacon(nativeBeacon: any): Beacon;
getApplicationContext(): android.content.Context;
unbindService(serviceConnection: android.content.ServiceConnection): void;
bindService(intent: android.content.Intent, serviceConnection: android.content.ServiceConnection, i: number): boolean;
}
export declare class NativescriptIbeacon extends Common {
private locationService;
constructor(beaconCallback: BeaconCallback);
requestAuthorization(): Promise<any>;
isAuthorised(): boolean;
private getPermission();
bind(): void;
unbind(): void;
startRanging(beaconRegion: BeaconRegion): void;
stopRanging(beaconRegion: BeaconRegion): void;
startMonitoring(beaconRegion: BeaconRegion): void;
stopMonitoring(beaconRegion: BeaconRegion): void;
}