docs(estimote-beacons): typos

This commit is contained in:
Daniel 2018-04-08 21:24:30 +02:00
parent 38e7e65557
commit 095a6c5cf7

View File

@ -1,9 +1,8 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core'; import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
export interface EstimoteBeaconRegion { export interface EstimoteBeaconRegion {
state?: string; state?: string;
major: number; major: number;
@ -13,7 +12,6 @@ export interface EstimoteBeaconRegion {
identifier?: string; identifier?: string;
uuid: string; uuid: string;
} }
/** /**
@ -48,7 +46,6 @@ export interface EstimoteBeaconRegion {
}) })
@Injectable() @Injectable()
export class EstimoteBeacons extends IonicNativePlugin { export class EstimoteBeacons extends IonicNativePlugin {
/** Proximity value */ /** Proximity value */
ProximityUnknown = 0; ProximityUnknown = 0;
@ -124,7 +121,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
requestWhenInUseAuthorization(): Promise<any> { return; } requestWhenInUseAuthorization(): Promise<any> {
return;
}
/** /**
* Ask the user for permission to use location services * Ask the user for permission to use location services
@ -145,7 +144,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
requestAlwaysAuthorization(): Promise<any> { return; } requestAlwaysAuthorization(): Promise<any> {
return;
}
/** /**
* Get the current location authorization status. * Get the current location authorization status.
@ -164,7 +165,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
authorizationStatus(): Promise<any> { return; } authorizationStatus(): Promise<any> {
return;
}
/** /**
* Start advertising as a beacon. * Start advertising as a beacon.
@ -177,16 +180,23 @@ export class EstimoteBeacons extends IonicNativePlugin {
* EstimoteBeacons.stopAdvertisingAsBeacon().then((result) => { console.log('Beacon stopped'); }); * EstimoteBeacons.stopAdvertisingAsBeacon().then((result) => { console.log('Beacon stopped'); });
* }, 5000); * }, 5000);
* ``` * ```
* @param uuid {string} UUID string the beacon should advertise (mandatory). * @param {string} uuid UUID string the beacon should advertise (mandatory).
* @param major {number} Major value to advertise (mandatory). * @param {number} major Major value to advertise (mandatory).
* @param minor {number} Minor value to advertise (mandatory). * @param {number} minor Minor value to advertise (mandatory).
* @param regionId {string} Identifier of the region used to advertise (mandatory). * @param {string} regionId Identifier of the region used to advertise (mandatory).
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova({ @Cordova({
clearFunction: 'stopAdvertisingAsBeacon' clearFunction: 'stopAdvertisingAsBeacon'
}) })
startAdvertisingAsBeacon(uuid: string, major: number, minor: number, regionId: string): Promise<any> { return; } startAdvertisingAsBeacon(
uuid: string,
major: number,
minor: number,
regionId: string
): Promise<any> {
return;
}
/** /**
* Stop advertising as a beacon. * Stop advertising as a beacon.
@ -202,7 +212,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
stopAdvertisingAsBeacon(): Promise<any> { return; } stopAdvertisingAsBeacon(): Promise<any> {
return;
}
/** /**
* Enable analytics. * Enable analytics.
@ -213,16 +225,18 @@ export class EstimoteBeacons extends IonicNativePlugin {
* ``` * ```
* EstimoteBeacons.enableAnalytics(true).then(() => { console.log('Analytics enabled'); }); * EstimoteBeacons.enableAnalytics(true).then(() => { console.log('Analytics enabled'); });
* ``` * ```
* @param enable {number} Boolean value to turn analytics on or off (mandatory). * @param {number} enable Boolean value to turn analytics on or off (mandatory).
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
enableAnalytics(enable: boolean): Promise<any> { return; } enableAnalytics(enable: boolean): Promise<any> {
return;
}
/** /**
* Test if analytics is enabled. * Test if analytics is enabled.
* *
* @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details}
* *
* @usage * @usage
* ``` * ```
@ -231,12 +245,14 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
isAnalyticsEnabled(): Promise<any> { return; } isAnalyticsEnabled(): Promise<any> {
return;
}
/** /**
* Test if App ID and App Token is set. * Test if App ID and App Token is set.
* *
* @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details}
* *
* @usage * @usage
* ``` * ```
@ -245,23 +261,27 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
isAuthorized(): Promise<any> { return; } isAuthorized(): Promise<any> {
return;
}
/** /**
* Set App ID and App Token. * Set App ID and App Token.
* *
* @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details} * @see {@link http://estimote.github.io/iOS-SDK/Classes/ESTConfig.html|Further details}
* *
* @usage * @usage
* ``` * ```
* EstimoteBeacons.setupAppIDAndAppToken('MyAppID', 'MyAppToken').then(() => { console.log('AppID and AppToken configured!'); }); * EstimoteBeacons.setupAppIDAndAppToken('MyAppID', 'MyAppToken').then(() => { console.log('AppID and AppToken configured!'); });
* ``` * ```
* @param appID {string} The App ID (mandatory). * @param {string} appID The App ID (mandatory).
* @param appToken {string} The App Token (mandatory). * @param {string} appToken The App Token (mandatory).
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
setupAppIDAndAppToken(appID: string, appToken: string): Promise<any> { return; } setupAppIDAndAppToken(appID: string, appToken: string): Promise<any> {
return;
}
/** /**
* Start scanning for all nearby beacons using CoreBluetooth (no region object is used). * Start scanning for all nearby beacons using CoreBluetooth (no region object is used).
@ -282,7 +302,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
observable: true, observable: true,
clearFunction: 'stopEstimoteBeaconDiscovery' clearFunction: 'stopEstimoteBeaconDiscovery'
}) })
startEstimoteBeaconDiscovery(): Observable<any> { return; } startEstimoteBeaconDiscovery(): Observable<any> {
return;
}
/** /**
* Stop CoreBluetooth scan. Available on iOS. * Stop CoreBluetooth scan. Available on iOS.
@ -299,7 +321,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
stopEstimoteBeaconDiscovery(): Promise<any> { return; } stopEstimoteBeaconDiscovery(): Promise<any> {
return;
}
/** /**
* Start ranging beacons. Available on iOS and Android. * Start ranging beacons. Available on iOS and Android.
@ -314,7 +338,7 @@ export class EstimoteBeacons extends IonicNativePlugin {
* EstimoteBeacons.stopRangingBeaconsInRegion(region).then(() => { console.log('scan stopped'); }); * EstimoteBeacons.stopRangingBeaconsInRegion(region).then(() => { console.log('scan stopped'); });
* }, 5000); * }, 5000);
* ``` * ```
* @param region {EstimoteBeaconRegion} Dictionary with region properties (mandatory). * @param {EstimoteBeaconRegion} region Dictionary with region properties (mandatory).
* @returns {Observable<any>} Returns an Observable that notifies of each beacon discovered. * @returns {Observable<any>} Returns an Observable that notifies of each beacon discovered.
*/ */
@Cordova({ @Cordova({
@ -322,7 +346,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
clearFunction: 'stopRangingBeaconsInRegion', clearFunction: 'stopRangingBeaconsInRegion',
clearWithArgs: true clearWithArgs: true
}) })
startRangingBeaconsInRegion(region: EstimoteBeaconRegion): Observable<any> { return; } startRangingBeaconsInRegion(region: EstimoteBeaconRegion): Observable<any> {
return;
}
/** /**
* Stop ranging beacons. Available on iOS and Android. * Stop ranging beacons. Available on iOS and Android.
@ -337,15 +363,17 @@ export class EstimoteBeacons extends IonicNativePlugin {
* EstimoteBeacons.stopRangingBeaconsInRegion(region).then(() => { console.log('scan stopped'); }); * EstimoteBeacons.stopRangingBeaconsInRegion(region).then(() => { console.log('scan stopped'); });
* }, 5000); * }, 5000);
* ``` * ```
* @param region {EstimoteBeaconRegion} Dictionary with region properties (mandatory). * @param {EstimoteBeaconRegion} region Dictionary with region properties (mandatory).
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
stopRangingBeaconsInRegion(region: EstimoteBeaconRegion): Promise<any> { return; } stopRangingBeaconsInRegion(region: EstimoteBeaconRegion): Promise<any> {
return;
}
/** /**
* Start ranging secure beacons. Available on iOS. * Start ranging secure beacons. Available on iOS.
* This function has the same parameters/behaviour as * This function has the same parameters/behavior as
* {@link EstimoteBeacons.startRangingBeaconsInRegion}. * {@link EstimoteBeacons.startRangingBeaconsInRegion}.
* To use secure beacons set the App ID and App Token using * To use secure beacons set the App ID and App Token using
* {@link EstimoteBeacons.setupAppIDAndAppToken}. * {@link EstimoteBeacons.setupAppIDAndAppToken}.
@ -356,16 +384,22 @@ export class EstimoteBeacons extends IonicNativePlugin {
clearFunction: 'stopRangingSecureBeaconsInRegion', clearFunction: 'stopRangingSecureBeaconsInRegion',
clearWithArgs: true clearWithArgs: true
}) })
startRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Observable<any> { return; } startRangingSecureBeaconsInRegion(
region: EstimoteBeaconRegion
): Observable<any> {
return;
}
/** /**
* Stop ranging secure beacons. Available on iOS. * Stop ranging secure beacons. Available on iOS.
* This function has the same parameters/behaviour as * This function has the same parameters/behavior as
* {@link EstimoteBeacons.stopRangingBeaconsInRegion}. * {@link EstimoteBeacons.stopRangingBeaconsInRegion}.
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
stopRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Promise<any> { return; } stopRangingSecureBeaconsInRegion(region: EstimoteBeaconRegion): Promise<any> {
return;
}
/** /**
* Start monitoring beacons. Available on iOS and Android. * Start monitoring beacons. Available on iOS and Android.
@ -377,8 +411,8 @@ export class EstimoteBeacons extends IonicNativePlugin {
* console.log('Region state: ' + JSON.stringify(state)); * console.log('Region state: ' + JSON.stringify(state));
* }); * });
* ``` * ```
* @param region {EstimoteBeaconRegion} Dictionary with region properties (mandatory). * @param {EstimoteBeaconRegion} region Dictionary with region properties (mandatory).
* @param [notifyEntryStateOnDisplay=false] {boolean} Set to true to detect if you * @param {boolean} [notifyEntryStateOnDisplay] Set to true to detect if you
* are inside a region when the user turns display on, see * are inside a region when the user turns display on, see
* {@link https://developer.apple.com/library/prerelease/ios/documentation/CoreLocation/Reference/CLBeaconRegion_class/index.html#//apple_ref/occ/instp/CLBeaconRegion/notifyEntryStateOnDisplay|iOS documentation} * {@link https://developer.apple.com/library/prerelease/ios/documentation/CoreLocation/Reference/CLBeaconRegion_class/index.html#//apple_ref/occ/instp/CLBeaconRegion/notifyEntryStateOnDisplay|iOS documentation}
* for further details (iOS only). * for further details (iOS only).
@ -391,7 +425,12 @@ export class EstimoteBeacons extends IonicNativePlugin {
successIndex: 1, successIndex: 1,
errorIndex: 2 errorIndex: 2
}) })
startMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable<any> { return; } startMonitoringForRegion(
region: EstimoteBeaconRegion,
notifyEntryStateOnDisplay: boolean
): Observable<any> {
return;
}
/** /**
* Stop monitoring beacons. Available on iOS and Android. * Stop monitoring beacons. Available on iOS and Android.
@ -401,21 +440,23 @@ export class EstimoteBeacons extends IonicNativePlugin {
* let region: EstimoteBeaconRegion = {} // Empty region matches all beacons. * let region: EstimoteBeaconRegion = {} // Empty region matches all beacons.
* EstimoteBeacons.stopMonitoringForRegion(region).then(() => { console.log('monitoring is stopped'); }); * EstimoteBeacons.stopMonitoringForRegion(region).then(() => { console.log('monitoring is stopped'); });
* ``` * ```
* @param region {EstimoteBeaconRegion} Dictionary with region properties (mandatory). * @param {EstimoteBeaconRegion} region Dictionary with region properties (mandatory).
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
stopMonitoringForRegion(region: EstimoteBeaconRegion): Promise<any> { return; } stopMonitoringForRegion(region: EstimoteBeaconRegion): Promise<any> {
return;
}
/** /**
* Start monitoring secure beacons. Available on iOS. * Start monitoring secure beacons. Available on iOS.
* This function has the same parameters/behaviour as * This function has the same parameters/behavior as
* EstimoteBeacons.startMonitoringForRegion. * EstimoteBeacons.startMonitoringForRegion.
* To use secure beacons set the App ID and App Token using * To use secure beacons set the App ID and App Token using
* {@link EstimoteBeacons.setupAppIDAndAppToken}. * {@link EstimoteBeacons.setupAppIDAndAppToken}.
* @see {@link EstimoteBeacons.startMonitoringForRegion} * @see {@link EstimoteBeacons.startMonitoringForRegion}
* @param region {EstimoteBeaconRegion} Region * @param {EstimoteBeaconRegion} region Region
* @param notifyEntryStateOnDisplay {boolean} * @param {boolean} notifyEntryStateOnDisplay
* @returns {Observable<any>} * @returns {Observable<any>}
*/ */
@Cordova({ @Cordova({
@ -425,17 +466,24 @@ export class EstimoteBeacons extends IonicNativePlugin {
successIndex: 1, successIndex: 1,
errorIndex: 2 errorIndex: 2
}) })
startSecureMonitoringForRegion(region: EstimoteBeaconRegion, notifyEntryStateOnDisplay: boolean): Observable<any> { return; } startSecureMonitoringForRegion(
region: EstimoteBeaconRegion,
notifyEntryStateOnDisplay: boolean
): Observable<any> {
return;
}
/** /**
* Stop monitoring secure beacons. Available on iOS. * Stop monitoring secure beacons. Available on iOS.
* This function has the same parameters/behaviour as * This function has the same parameters/behavior as
* {@link EstimoteBeacons.stopMonitoringForRegion}. * {@link EstimoteBeacons.stopMonitoringForRegion}.
* @param region {EstimoteBeaconRegion} Region * @param {EstimoteBeaconRegion} region Region
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
stopSecureMonitoringForRegion(region: EstimoteBeaconRegion): Promise<any> { return; } stopSecureMonitoringForRegion(region: EstimoteBeaconRegion): Promise<any> {
return;
}
/** /**
* Connect to Estimote Beacon. Available on Android. * Connect to Estimote Beacon. Available on Android.
@ -451,11 +499,13 @@ export class EstimoteBeacons extends IonicNativePlugin {
* minor: 1 * minor: 1
* }); * });
* ``` * ```
* @param beacon {Beacon} Beacon to connect to. * @param {Beacon} beacon Beacon to connect to.
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
connectToBeacon(beacon: any): Promise<any> { return; } connectToBeacon(beacon: any): Promise<any> {
return;
}
/** /**
* Disconnect from connected Estimote Beacon. Available on Android. * Disconnect from connected Estimote Beacon. Available on Android.
@ -467,7 +517,9 @@ export class EstimoteBeacons extends IonicNativePlugin {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
disconnectConnectedBeacon(): Promise<any> { return; } disconnectConnectedBeacon(): Promise<any> {
return;
}
/** /**
* Write proximity UUID to connected Estimote Beacon. Available on Android. * Write proximity UUID to connected Estimote Beacon. Available on Android.
@ -477,11 +529,13 @@ export class EstimoteBeacons extends IonicNativePlugin {
* // Example that writes constant ESTIMOTE_PROXIMITY_UUID * // Example that writes constant ESTIMOTE_PROXIMITY_UUID
* EstimoteBeacons.writeConnectedProximityUUID(ESTIMOTE_PROXIMITY_UUID); * EstimoteBeacons.writeConnectedProximityUUID(ESTIMOTE_PROXIMITY_UUID);
* *
* @param uuid {string} String to write as new UUID * @param {string} uuid String to write as new UUID
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
writeConnectedProximityUUID(uuid: any): Promise<any> { return; } writeConnectedProximityUUID(uuid: any): Promise<any> {
return;
}
/** /**
* Write major to connected Estimote Beacon. Available on Android. * Write major to connected Estimote Beacon. Available on Android.
@ -491,11 +545,13 @@ export class EstimoteBeacons extends IonicNativePlugin {
* // Example that writes 1 * // Example that writes 1
* EstimoteBeacons.writeConnectedMajor(1); * EstimoteBeacons.writeConnectedMajor(1);
* *
* @param major {number} number to write as new major * @param {number} major number to write as new major
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
writeConnectedMajor(major: number): Promise<any> { return; } writeConnectedMajor(major: number): Promise<any> {
return;
}
/** /**
* Write minor to connected Estimote Beacon. Available on Android. * Write minor to connected Estimote Beacon. Available on Android.
@ -505,10 +561,11 @@ export class EstimoteBeacons extends IonicNativePlugin {
* // Example that writes 1 * // Example that writes 1
* EstimoteBeacons.writeConnectedMinor(1); * EstimoteBeacons.writeConnectedMinor(1);
* *
* @param minor {number} number to write as new minor * @param {number} minor number to write as new minor
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()
writeConnectedMinor(minor: number): Promise<any> { return; } writeConnectedMinor(minor: number): Promise<any> {
return;
}
} }