跳到主要内容

bn.previewImage

previewImage(options): Promise<void>

Preview the picture in full screen on the new page. Preview the process of the user can save pictures, send to friends and other operations.

Parameters

NameType
optionsPreviewImageOptions

Returns

Promise<void>

Interface: PreviewImageOptions

NameTypeDescription
urlsstring[]A list of links to images that need to be previewed
current?stringDisplays long press menu
showmenu?booleanLink to currently displayed picture
referrerPolicy?"origin" | "no-referrer"origin: Send the full referrer no-referrer: Do not send