Intent

This API allows you to add functionality for receiving content sent from other apps.

Usage
Intent.get().then((it)=>{
    console.log(it.action);

    for(let i = 0; i < it.items.length; i++){
        console.log(it.items[i].uri);
        console.log(it.items[i].type);
        console.log(it.items[i].extension);
    }

});
window.Intent.get().then((it) => {
    console.log(it.action);

    for (let i = 0; i < it.items.length; i++) {
        console.log(it.items[i].uri);
        console.log(it.items[i].type);
        console.log(it.items[i].extension);
    }
});
window.Intent.get().then((it) => {
    console.log(it.action);

    for (let i = 0; i < it.items.length; i++) {
        console.log(it.items[i].uri);
        console.log(it.items[i].type);
        console.log(it.items[i].extension);
    }
});
(<any>window).Intent.get().then((it) => {
    console.log(it.action);

    for (let i = 0; i < it.items.length; i++) {
        console.log(it.items[i].uri);
        console.log(it.items[i].type);
        console.log(it.items[i].extension);
    }
});
window.Intent.get().then((it) => {
    console.log(it.action);

    for (let i = 0; i < it.items.length; i++) {
        console.log(it.items[i].uri);
        console.log(it.items[i].type);
        console.log(it.items[i].extension);
    }
});

Table of Contents

Classes


Intent

get

get(): Promise <ResultGet>

Get limited access to intent properties.


RETURN
Return: Promise <ResultGet>

Interfaces

ResultGet
interface ResultGet{
    "action": string,
    "items": IntentItem[],
    "flags": int,
    "type": string,
    "component": string,
    "extras": string
}
IntentItem
interface IntentItem{
    "uri": string,
    "type": string,
    "extension": string
}