@parern/pare-native-iobs

TODO

Usage no npm install needed!

<script type="module">
  import parernPareNativeIobs from 'https://cdn.skypack.dev/@parern/pare-native-iobs';
</script>

README

@parern/pare-native-iobs[IOBS]

安装

$ yarn add @parern/pare-native-iobs

API

对象方法

  • PareIobs.upload(String filePath, String bucket, String key, String token, Stringv url, Boolean isLoading)[IOS/Android]
    IOBS上传

  • PareIobs.cancelUpload()
    中断上传

事件

  • PareIobsEvent
    监听事件 addListener EventReminder

例子

import PareIobs, { PareIobsEvent } from '@parern/pare-native-iobs';

PareIobs.upload(filePath,bucket,key,token,url,isLoading).then(res=>{
  console.log(res);
})

PareIobsEvent.addListener('EventReminder',event=>{
  console.log(event);
});