const photo = function () {
try {
let activity = new WebActivity("record", {
data: {
type: ["photos", "videos"],
},
});
activity.start().then(
(rv) => {
console.log("Results passed back from activity handler:");
console.log(rv);
},
(err) => {
console.log(err);
}
);
} catch (e) {}
};
let share_position = function () {
let a = "url"
try {
let activity = new WebActivity("share", { type: "url", url: a });
activity.start().then(
(rv) => {
console.log("Results passed back from activity handler:");
console.log(rv);
},
(err) => {
console.log(err);
}
);
} catch (e) {}
};