ParaDeviceService.LoadPhoto

Declaration

public static void LoadPhoto(Action<Texture2D, string, long> callback, int maxSize = 1024)

Parameters

Parameter NameParameter Description
callbackThe callback function triggered after the album is successfully opened. The function will return the texture, the path to the image in the album, and the image size.
maxSizeThe maximum resolution of the image. If the resolution of the image to be loaded exceeds this value, it will be reduced to this value.

Description

Opens the album and asks the user to select an image from the album.