mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
fix lint
This commit is contained in:
parent
ec14e179c6
commit
6d07cf1a84
@ -35,77 +35,65 @@ import { Observable } from 'rxjs/Observable';
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class WebIntent extends IonicNativePlugin {
|
export class WebIntent extends IonicNativePlugin {
|
||||||
|
/**
|
||||||
|
* Convenience constant for actions
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
@CordovaProperty ACTION_SEND: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for actions
|
* Convenience constant for actions
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty ACTION_VIEW: string;
|
||||||
ACTION_SEND: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Convenience constant for actions
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
@CordovaProperty
|
|
||||||
ACTION_VIEW: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for extras
|
* Convenience constant for extras
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty EXTRA_TEXT: string;
|
||||||
EXTRA_TEXT: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for extras
|
* Convenience constant for extras
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty EXTRA_SUBJECT: string;
|
||||||
EXTRA_SUBJECT: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for extras
|
* Convenience constant for extras
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty EXTRA_STREAM: string;
|
||||||
EXTRA_STREAM: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for extras
|
* Convenience constant for extras
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty EXTRA_EMAIL: string;
|
||||||
EXTRA_EMAIL: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for actions
|
* Convenience constant for actions
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty ACTION_CALL: string;
|
||||||
ACTION_CALL: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for actions
|
* Convenience constant for actions
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty ACTION_SENDTO: string;
|
||||||
ACTION_SENDTO: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for actions
|
* Convenience constant for actions
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty ACTION_GET_CONTENT: string;
|
||||||
ACTION_GET_CONTENT: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience constant for actions
|
* Convenience constant for actions
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty ACTION_PICK: string;
|
||||||
ACTION_PICK: string;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Launches an Android intent
|
* Launches an Android intent
|
||||||
@ -113,7 +101,13 @@ export class WebIntent extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
startActivity(options: { action: any, url: string, type?: string }): Promise<any> { return; }
|
startActivity(options: {
|
||||||
|
action: any;
|
||||||
|
url: string;
|
||||||
|
type?: string;
|
||||||
|
}): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts a new activity and return the result to the application
|
* Starts a new activity and return the result to the application
|
||||||
@ -121,7 +115,13 @@ export class WebIntent extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
startActivityForResult(options: { action: any, url: string, type?: string }): Promise<any> { return; }
|
startActivityForResult(options: {
|
||||||
|
action: any;
|
||||||
|
url: string;
|
||||||
|
type?: string;
|
||||||
|
}): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this app was invoked with specified extra
|
* Checks if this app was invoked with specified extra
|
||||||
@ -129,7 +129,9 @@ export class WebIntent extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
hasExtra(extra: string): Promise<any> { return; }
|
hasExtra(extra: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the extra that this app was invoked with
|
* Gets the extra that this app was invoked with
|
||||||
@ -137,14 +139,18 @@ export class WebIntent extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getExtra(extra: string): Promise<any> { return; }
|
getExtra(extra: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the Uri the app was invoked with
|
* Gets the Uri the app was invoked with
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getUri(): Promise<string> { return; };
|
getUri(): Promise<string> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {Observable<string>}
|
* @returns {Observable<string>}
|
||||||
@ -152,7 +158,9 @@ export class WebIntent extends IonicNativePlugin {
|
|||||||
@Cordova({
|
@Cordova({
|
||||||
observable: true
|
observable: true
|
||||||
})
|
})
|
||||||
onNewIntent(): Observable<string> { return; };
|
onNewIntent(): Observable<string> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends a custom intent passing optional extras
|
* Sends a custom intent passing optional extras
|
||||||
@ -160,45 +168,56 @@ export class WebIntent extends IonicNativePlugin {
|
|||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
sendBroadcast(options: { action: string, extras?: { option: boolean } }): Promise<any> { return; }
|
sendBroadcast(options: {
|
||||||
|
action: string;
|
||||||
|
extras?: { option: boolean };
|
||||||
|
}): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request that a given application service be started
|
* Request that a given application service be started
|
||||||
* @param options {Object} { action: string, extras?: { option: boolean } }
|
* @param options {Object} { action: string, extras?: { option: boolean } }
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
startService(options: { action: string, extras?: { option: boolean } }): Promise<any> { return; }
|
startService(options: {
|
||||||
|
action: string;
|
||||||
|
extras?: { option: boolean };
|
||||||
|
}): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a broadcast receiver for the specified filters
|
* Registers a broadcast receiver for the specified filters
|
||||||
* @param filters {any}
|
* @param filters {any}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
registerBroadcastReceiver(filters: any): void { }
|
registerBroadcastReceiver(filters: any): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregisters a broadcast receiver
|
* Unregisters a broadcast receiver
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
unregisterBroadcastReceiver(): void { }
|
unregisterBroadcastReceiver(): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the content of the intent used whenever the application activity is launched
|
* Returns the content of the intent used whenever the application activity is launched
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
onIntent(): void { }
|
onIntent(): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
onActivityResult(): void { }
|
onActivityResult(): void {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
getIntent(): Promise<any> { return; };
|
getIntent(): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user