diff --git a/src/plugins/market.ts b/src/plugins/market.ts index 0ad90200e9..6299dca23e 100644 --- a/src/plugins/market.ts +++ b/src/plugins/market.ts @@ -19,12 +19,30 @@ import { Plugin, Cordova } from './plugin'; repo: 'https://github.com/xmartlabs/cordova-plugin-market' }) export class Market { + /** * Opens an app in Google Play / App Store * @param appId {string} Package name - * @param callbacks {Object} Optional callbacks in the format {success?: Function, failure?: Function} + * @return {Promise} + */ + @Cordova({ + callbackStyle: 'object', + successName: 'success', + errorName: 'failure' + }) + static open(appId: string): Promise { return } + + /** + * Search apps by keyword + * @param keyword {string} Keyword + * @return {Promise} */ - @Cordova({sync: true}) - static open(appId: string, callbacks?: {success?: Function, failure?: Function}): void { } + @Cordova({ + callbackStyle: 'object', + successName: 'success', + errorName: 'failure', + platforms: ['Android'] + }) + static search(keyword: string): Promise { return } }