index.ts 4.2 KB
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3
export * from './service/base/base64'
export * from './service/base/upx2px'
export * from './service/base/interceptor'
4
export * from './service/base/eventBus'
fxy060608's avatar
fxy060608 已提交
5

fxy060608's avatar
fxy060608 已提交
6
export * from './service/context/createVideoContext'
Q
qiang 已提交
7
export * from './service/context/createMapContext'
8
export * from './service/context/canvas'
9
export * from './service/context/innerAudio'
fxy060608's avatar
fxy060608 已提交
10

fxy060608's avatar
fxy060608 已提交
11
export * from './service/ui/createIntersectionObserver'
inkwalk's avatar
inkwalk 已提交
12
export * from './service/ui/createMediaQueryObserver'
fxy060608's avatar
fxy060608 已提交
13
export * from './service/ui/createSelectorQuery'
D
DCloud_LXH 已提交
14
export * from './service/ui/createAnimation'
fxy060608's avatar
fxy060608 已提交
15
export * from './service/ui/tabBar'
16
export * from './service/ui/window'
Q
qiang 已提交
17
export * from './service/ui/locale'
fxy060608's avatar
fxy060608 已提交
18
export * from './service/ui/setPageMeta'
fxy060608's avatar
fxy060608 已提交
19

D
DCloud_LXH 已提交
20 21
export * from './service/keyboard/getSelectedTextRange'

fxy060608's avatar
fxy060608 已提交
22 23
export * from './service/hook/app'

fxy060608's avatar
fxy060608 已提交
24
// protocols
fxy060608's avatar
fxy060608 已提交
25
export * from './protocols/base/canIUse'
fxy060608's avatar
fxy060608 已提交
26

27
export * from './protocols/context/context'
28
export * from './protocols/context/canvas'
29
export * from './protocols/context/getBackgroundAudioManager'
30

fxy060608's avatar
fxy060608 已提交
31
export * from './protocols/device/makePhoneCall'
inkwalk's avatar
inkwalk 已提交
32
export * from './protocols/device/addPhoneContact'
33
export * from './protocols/device/clipboard'
Q
qiang 已提交
34
export * from './protocols/device/accelerometer'
Q
qiang 已提交
35
export * from './protocols/device/compass'
D
DCloud_LXH 已提交
36
export * from './protocols/device/vibrate'
Q
qiang 已提交
37
export * from './protocols/device/bluetooth'
Q
qiang 已提交
38
export * from './protocols/device/ibeacon'
39
export * from './protocols/device/brightness'
40
export * from './protocols/device/soterAuthentication'
D
DCloud_LXH 已提交
41
export * from './protocols/device/scanCode'
fxy060608's avatar
fxy060608 已提交
42

Q
qiang 已提交
43 44
export * from './protocols/storage/storage'

45 46 47
export * from './protocols/file/saveFile'
export * from './protocols/file/getSavedFileList'
export * from './protocols/file/removeSavedFile'
Q
qiang 已提交
48
export * from './protocols/file/getFileInfo'
49
export * from './protocols/file/getSavedFileInfo'
fxy060608's avatar
fxy060608 已提交
50 51
export * from './protocols/file/openDocument'

52
export * from './protocols/keyboard/keyboard'
D
DCloud_LXH 已提交
53
export * from './protocols/keyboard/getSelectedTextRange'
54

fxy060608's avatar
fxy060608 已提交
55 56 57 58
export * from './protocols/location/chooseLocation'
export * from './protocols/location/getLocation'
export * from './protocols/location/openLocation'

fxy060608's avatar
fxy060608 已提交
59 60
export * from './protocols/media/chooseImage'
export * from './protocols/media/chooseVideo'
D
DCloud_LXH 已提交
61
export * from './protocols/media/chooseFile'
fxy060608's avatar
fxy060608 已提交
62
export * from './protocols/media/getImageInfo'
Q
qiang 已提交
63
export * from './protocols/media/previewImage'
Q
qiang 已提交
64
export * from './protocols/media/getVideoInfo'
fxy060608's avatar
fxy060608 已提交
65 66
export * from './protocols/media/saveImageToPhotosAlbum'
export * from './protocols/media/saveVideoToPhotosAlbum'
D
DCloud_LXH 已提交
67
export * from './protocols/media/getRecorderManager'
inkwalk's avatar
inkwalk 已提交
68
export * from './protocols/media/compressImage'
inkwalk's avatar
inkwalk 已提交
69
export * from './protocols/media/compressVideo'
fxy060608's avatar
fxy060608 已提交
70 71

export * from './protocols/network/request'
Q
qiang 已提交
72
export * from './protocols/network/downloadFile'
Q
qiang 已提交
73
export * from './protocols/network/uploadFile'
Q
qiang 已提交
74
export * from './protocols/network/socket'
fxy060608's avatar
fxy060608 已提交
75

Q
qiang 已提交
76 77
export * from './protocols/location/getLocation'

fxy060608's avatar
fxy060608 已提交
78
export * from './protocols/route/route'
fxy060608's avatar
fxy060608 已提交
79

fxy060608's avatar
fxy060608 已提交
80 81
export * from './protocols/ui/hideLoading'
export * from './protocols/ui/hideToast'
fxy060608's avatar
fxy060608 已提交
82
export * from './protocols/ui/loadFontFace'
83
export * from './protocols/ui/navigationBar'
fxy060608's avatar
fxy060608 已提交
84 85 86 87 88
export * from './protocols/ui/pageScrollTo'
export * from './protocols/ui/showActionSheet'
export * from './protocols/ui/showLoading'
export * from './protocols/ui/showModal'
export * from './protocols/ui/showToast'
89 90
export * from './protocols/ui/startPullDownRefresh'
export * from './protocols/ui/stopPullDownRefresh'
fxy060608's avatar
fxy060608 已提交
91
export * from './protocols/ui/tabBar'
D
DCloud_LXH 已提交
92 93

export * from './protocols/plugin/getProvider'
D
DCloud_LXH 已提交
94
export * from './protocols/plugin/oauth'
D
DCloud_LXH 已提交
95
export * from './protocols/plugin/share'
D
DCloud_LXH 已提交
96
export * from './protocols/plugin/requestPayment'
97 98 99 100 101 102 103

// ad
export * from './protocols/ad/rewardedVideoAd'
export * from './protocols/ad/fullScreenVideoAd'
export * from './protocols/ad/interstitialAd'
export * from './protocols/ad/interactiveAd'

fxy060608's avatar
fxy060608 已提交
104
// helpers
fxy060608's avatar
fxy060608 已提交
105
export {
fxy060608's avatar
fxy060608 已提交
106
  defineOnApi,
fxy060608's avatar
fxy060608 已提交
107
  defineOffApi,
fxy060608's avatar
fxy060608 已提交
108 109 110
  defineTaskApi,
  defineSyncApi,
  defineAsyncApi,
fxy060608's avatar
fxy060608 已提交
111 112 113 114 115
  createUnsupportedOnApi,
  createUnsupportedOffApi,
  createUnsupportedTaskApi,
  createUnsupportedSyncApi,
  createUnsupportedAsyncApi,
fxy060608's avatar
fxy060608 已提交
116
} from './helpers/api'
fxy060608's avatar
fxy060608 已提交
117 118 119

export { handlePromise } from './helpers/api/promise'
export { invokeApi, wrapperReturnValue } from './helpers/interceptor'
fxy060608's avatar
fxy060608 已提交
120
export { requestComponentObserver } from './helpers/requestComponentObserver'
fxy060608's avatar
fxy060608 已提交
121 122 123 124

// types

export { DefineAsyncApiFn } from './helpers/api'