Skip to main content

Result

The result object returned for each selected media item.

pathโ€‹

  • Type: string
  • Description: Local file path of the media

fileNameโ€‹

  • Type: string
  • Description: Name of the media file

localIdentifierโ€‹

  • Type: string
  • Description: Unique identifier for the media asset

widthโ€‹

  • Type: number
  • Description: Width of the media in pixels

heightโ€‹

  • Type: number
  • Description: Height of the media in pixels

mimeโ€‹

  • Type: string
  • Description: MIME type of the media file

sizeโ€‹

  • Type: number
  • Description: File size in bytes

bucketIdโ€‹

  • Type: number
  • Description: ID of the bucket containing the media
  • Platform: Android

realPathโ€‹

  • Type: string
  • Description: Actual file path in the device storage
  • Platform: Android

parentFolderNameโ€‹

  • Type: string
  • Description: Name of the parent folder
  • Platform: Android

creationDateโ€‹

  • Type: number
  • Description: Creation timestamp of the media

typeโ€‹

  • Type: string
  • Options: image | video
  • Description: Type of the media file

durationโ€‹

  • Type: number
  • Description: Duration in seconds (for video files)

thumbnailโ€‹

  • Type: string
  • Description: Thumbnail path for video files

cropโ€‹

  • Type: boolean
  • Description: Indicates if the media has been cropped