com-easystep2-datawedge-plugin-intent-capacitor
Version:
Capacitor plugin for Android Intents
36 lines (30 loc) • 1.33 kB
JavaScript
var capacitorIntentShim = (function (exports, core) {
'use strict';
// Register the plugin
const IntentShim = core.registerPlugin('IntentShim');
// Export constants for direct usage in client code, matching the Cordova plugin's API
const ACTION_SEND = 'android.intent.action.SEND';
const ACTION_VIEW = 'android.intent.action.VIEW';
const EXTRA_TEXT = 'android.intent.extra.TEXT';
const EXTRA_SUBJECT = 'android.intent.extra.SUBJECT';
const EXTRA_STREAM = 'android.intent.extra.STREAM';
const EXTRA_EMAIL = 'android.intent.extra.EMAIL';
const ACTION_CALL = 'android.intent.action.CALL';
const ACTION_SENDTO = 'android.intent.action.SENDTO';
const ACTION_GET_CONTENT = 'android.intent.action.GET_CONTENT';
const ACTION_PICK = 'android.intent.action.PICK';
exports.ACTION_CALL = ACTION_CALL;
exports.ACTION_GET_CONTENT = ACTION_GET_CONTENT;
exports.ACTION_PICK = ACTION_PICK;
exports.ACTION_SEND = ACTION_SEND;
exports.ACTION_SENDTO = ACTION_SENDTO;
exports.ACTION_VIEW = ACTION_VIEW;
exports.EXTRA_EMAIL = EXTRA_EMAIL;
exports.EXTRA_STREAM = EXTRA_STREAM;
exports.EXTRA_SUBJECT = EXTRA_SUBJECT;
exports.EXTRA_TEXT = EXTRA_TEXT;
exports.IntentShim = IntentShim;
Object.defineProperty(exports, '__esModule', { value: true });
return exports;
})({}, capacitorExports);
//# sourceMappingURL=plugin.js.map