Lines Matching refs:mediaLibrary

3 ## cl.file.1 mediaLibrary APIs Changed
5 All APIs provided by the mediaLibrary module of the multimedia subsystem are deprecated.
9 All APIs described in [mediaLibrary](../../../application-dev/reference/apis/js-apis-medialibrary.m…
14 The table below lists the **mediaLibrary** APIs that can be substituted by the **FilePicker** APIs.
54 **The following example shows how to use the mediaLibrary APIs to edit a file in the public directo…
56 1. Call **getMediaLibrary** to obtain a **mediaLibrary** instance.
63 8. Call **release** to release the **mediaLibrary** instance.
68 import mediaLibrary from '@ohos.multimedia.mediaLibrary';
74 let media = mediaLibrary.getMediaLibrary(context);
75 let fileKeyObj = mediaLibrary.FileKey;
76 let imageType = mediaLibrary.MediaType.IMAGE;
84 console.info('mediaLibrary fileAsset displayName: ' + fileAsset.displayName);
86 console.info('mediaLibrary fileAsset open fd: ' + fd);
93 console.error('mediaLibrary fail, err: ' + err);
110 import mediaLibrary from '@ohos.multimedia.mediaLibrary';
144 **The following example shows how to use the mediaLibrary APIs to create a file in the public direc…
146 1. Call **getMediaLibrary** to obtain a **mediaLibrary** instance.
152 7. Call **release** to release the **mediaLibrary** instance.
157 import mediaLibrary from '@ohos.multimedia.mediaLibrary';
163 let media = mediaLibrary.getMediaLibrary(context);
164 let mediaType = mediaLibrary.MediaType.FILE;
165 let DIR_DOWNLOAD = mediaLibrary.DirectoryType.DIR_DOWNLOAD;
168 console.info('mediaLibrary fileAsset displayName: ' + fileAsset.displayName);
170 console.info('mediaLibrary fileAsset open fd: ' + fd);
176 console.error('mediaLibrary fail, err: ' + err);
193 import mediaLibrary from '@ohos.multimedia.mediaLibrary';
230 The table below lists the mediaLibrary APIs that are not open to third-party applications due to fu…