7tools 中文文档教程
tools
septnet 原生常用工具
Install
npm install tools
npx cap sync
API
imagesViewer(...)
share(...)
showLoading(...)
hideLoading()
qrcode()
checkUpdate()
takePhoto()
requirePermission()
imagesViewer(…)
imagesViewer(options: { urls: any[]; titles: any; startIndex?: number; savable?: boolean; orientationable?: boolean; landscape?: boolean; }) => any
Param | Type |
---|---|
options | { urls: {}; titles: any; startIndex?: number; savable?: boolean; orientationable?: boolean; landscape?: boolean; } |
返回: 任何
share(…)
share(options: { title?: string; url?: string; img?: string; text?: string; }) => any
Param | Type |
---|---|
options | { title?: string; url?: string; img?: string; text?: string; } |
返回: 任何
showLoading(…)
showLoading(options?: { text: string; } | undefined) => any
Param | Type |
---|---|
options | { text: string; } |
返回: 任何
hideLoading()
hideLoading() => any
返回: 任何
qrcode()
qrcode() => any
返回: 任何
checkUpdate()
checkUpdate() => any
返回: 任何
takePhoto()
takePhoto() => any
返回: 任何
requirePermission()
requirePermission() => any
返回: 任何
tools
septnet native common tools
Install
npm install tools
npx cap sync
API
imagesViewer(...)
share(...)
showLoading(...)
hideLoading()
qrcode()
checkUpdate()
takePhoto()
requirePermission()
imagesViewer(…)
imagesViewer(options: { urls: any[]; titles: any; startIndex?: number; savable?: boolean; orientationable?: boolean; landscape?: boolean; }) => any
Param | Type |
---|---|
options | { urls: {}; titles: any; startIndex?: number; savable?: boolean; orientationable?: boolean; landscape?: boolean; } |
Returns: any
share(…)
share(options: { title?: string; url?: string; img?: string; text?: string; }) => any
Param | Type |
---|---|
options | { title?: string; url?: string; img?: string; text?: string; } |
Returns: any
showLoading(…)
showLoading(options?: { text: string; } | undefined) => any
Param | Type |
---|---|
options | { text: string; } |
Returns: any
hideLoading()
hideLoading() => any
Returns: any
qrcode()
qrcode() => any
Returns: any
checkUpdate()
checkUpdate() => any
Returns: any
takePhoto()
takePhoto() => any
Returns: any
requirePermission()
requirePermission() => any
Returns: any
更多