mediaLibrary Switching
API in the FA Model | Corresponding .d.ts File in the Stage Model | Corresponding API in the Stage Model |
---|---|---|
getMediaLibrary(): MediaLibrary; | @ohos.file.photoAccessHelper.d.ts | getPhotoAccessHelper(context: Context): PhotoAccessHelper; |