Direct Known Subclasses:
IconRow

public class MediaRow extends UserCustomRow
User Media Row containing the values from a single cursor row
Since:
3.0.1
  • Constructor Details

    • MediaRow

      protected MediaRow(MediaTable table)
      Constructor to create an empty row
      Parameters:
      table - media table
    • MediaRow

      public MediaRow(UserCustomRow userCustomRow)
      Constructor
      Parameters:
      userCustomRow - user custom row
    • MediaRow

      public MediaRow(MediaRow mediaRow)
      Copy Constructor
      Parameters:
      mediaRow - media row to copy
  • Method Details

    • getTable

      public MediaTable getTable()
      Overrides:
      getTable in class UserCoreRow<UserCustomColumn,UserCustomTable>
    • getIdColumnIndex

      public int getIdColumnIndex()
      Get the id column index
      Returns:
      id column index
    • getIdColumn

      public UserCustomColumn getIdColumn()
      Get the id column
      Returns:
      id column
    • getId

      public long getId()
      Get the id
      Overrides:
      getId in class UserCoreRow<UserCustomColumn,UserCustomTable>
      Returns:
      id
    • getDataColumnIndex

      public int getDataColumnIndex()
      Get the data column index
      Returns:
      data column index
    • getDataColumn

      public UserCustomColumn getDataColumn()
      Get the data column
      Returns:
      data column
    • getData

      public byte[] getData()
      Get the data
      Returns:
      data
    • setData

      public void setData(byte[] data)
      Set the data
      Parameters:
      data - data
    • getDataBounds

      public android.graphics.BitmapFactory.Options getDataBounds()
      Read the data bounds without allocating pixel memory. Access values using: BitmapFactory.Options.outWidth, BitmapFactory.Options.outHeight, BitmapFactory.Options.outMimeType, BitmapFactory.Options.outColorSpace, and BitmapFactory.Options.outConfig
      Returns:
      bounds options
      Since:
      3.2.0
    • getDataBitmap

      public android.graphics.Bitmap getDataBitmap()
      Get the data bitmap
      Returns:
      data bitmap
      Since:
      3.2.0
    • getDataBitmap

      public android.graphics.Bitmap getDataBitmap(android.graphics.BitmapFactory.Options options)
      Get the data bitmap with decoding options
      Parameters:
      options - bitmap options
      Returns:
      data bitmap
      Since:
      3.2.0
    • setData

      public void setData(android.graphics.Bitmap bitmap, android.graphics.Bitmap.CompressFormat format) throws IOException
      Set the data from a full quality bitmap
      Parameters:
      bitmap - bitmap
      format - compress format
      Throws:
      IOException - upon failure
      Since:
      3.2.0
    • setData

      public void setData(android.graphics.Bitmap bitmap, android.graphics.Bitmap.CompressFormat format, int quality) throws IOException
      Set the data from a bitmap
      Parameters:
      bitmap - bitmap
      format - compress format
      quality - quality
      Throws:
      IOException - upon failure
      Since:
      3.2.0
    • getContentTypeColumnIndex

      public int getContentTypeColumnIndex()
      Get the content type column index
      Returns:
      content type column index
    • getContentTypeColumn

      public UserCustomColumn getContentTypeColumn()
      Get the content type column
      Returns:
      content type column
    • getContentType

      public String getContentType()
      Get the content type
      Returns:
      content type
    • setContentType

      public void setContentType(String contentType)
      Set the content type
      Parameters:
      contentType - content type
    • copy

      public MediaRow copy()
      Copy the row
      Overrides:
      copy in class UserCustomRow
      Returns:
      row copy