nativeScript-open-youtube
打开 YouTube 应用
npm i --save nativescript-open-youtube

NativeScript Open Youtube

安装

在命令提示符下转到您的应用根目录并执行

tns plugin add nativescript-open-youtube

使用方法

JavaScript
// require the plugin
var Youtube = require("nativescript-open-youtube").Youtube;

// instantiate the plugin
var youtube = new Youtube();

youtube.open('VypbgNAsqos');
TypeScript
// require the plugin
import { Youtube } from "nativescript-open-youtube";

// instantiate the plugin
let youtube = new Youtube();

youtube.open('VypbgNAsqos');