Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    CalendarEntity
    class CalendarEntity : BaseColumns, CalendarContract.CalendarColumns, CalendarContract.SyncColumns
    
    Class that represents a Calendar Entity. There is one entry per calendar. This is a helper class to make batch operations easier.
    Summary
    
      
        
          | Inherited constants | 
        
          | From class SyncColumns
                
                  
                    | String | ACCOUNT_NAME
                         The account that was used to sync the entry to the device. If the account_type is not ACCOUNT_TYPE_LOCALthen the name and type must match an account on the device or the calendar will be deleted. Type: TEXT |  
                    | String | ACCOUNT_TYPE
                         The type of the account that was used to sync the entry to the device. A type of ACCOUNT_TYPE_LOCALwill keep this event form being deleted if there are no matching accounts on the device. Type: TEXT |  
                    | String | CAN_PARTIALLY_UPDATE
                         If set to 1 this causes events on this calendar to be duplicated with Events.LAST_SYNCEDset to 1 whenever the event transitions from non-dirty to dirty. The duplicated event will not be expanded in the instances table and will only show up in sync adapter queries of the events table. It will also be deleted when the originating event has its dirty flag cleared by the sync adapter. Type: INTEGER (boolean) |  
                    | String | DELETED
                         Whether the row has been deleted but not synced to the server. A deleted row should be ignored.   Type: INTEGER (boolean)  |  
                    | String | DIRTY
                         Used to indicate that local, unsynced, changes are present.  Type: INTEGER (long) |  
                    | String | MUTATORS
                         Used in conjunction with DIRTYto indicate what packages wrote local changes. Type: TEXT |  
                    | String | _SYNC_ID
                         The unique ID for a row assigned by the sync source. NULL if the row has never been synced. This is used as a reference id for exceptions along with BaseColumns._ID. Type: TEXT |  | 
        
          | From class CalendarColumns
                
                  
                    | String | ALLOWED_ATTENDEE_TYPES
                         A comma separated list of attendee types supported for this calendar in the format "#,#,#". Valid types are Attendees.TYPE_NONE,Attendees.TYPE_OPTIONAL,Attendees.TYPE_REQUIRED,Attendees.TYPE_RESOURCE. Setting this field to onlyAttendees.TYPE_NONEshould be used to indicate that changing the attendee type is not supported. |  
                    | String | ALLOWED_AVAILABILITY
                         A comma separated list of availability types supported for this calendar in the format "#,#,#". Valid types are Events.AVAILABILITY_BUSY,Events.AVAILABILITY_FREE,Events.AVAILABILITY_TENTATIVE. Setting this field to onlyEvents.AVAILABILITY_BUSYshould be used to indicate that changing the availability is not supported. |  
                    | String | ALLOWED_REMINDERS
                         A comma separated list of reminder methods supported for this calendar in the format "#,#,#". Valid types are Reminders.METHOD_DEFAULT,Reminders.METHOD_ALERT,Reminders.METHOD_EMAIL,Reminders.METHOD_SMS,Reminders.METHOD_ALARM. Column name. Type: TEXT |  
                    | String | CALENDAR_ACCESS_LEVEL
                         The level of access that the user has for the calendar  Type: INTEGER (one of the values below) |  
                    | String | CALENDAR_COLOR
                         The color of the calendar. This should only be updated by the sync adapter, not other apps, as changing a calendar's color can adversely affect its display.  Type: INTEGER (color value) |  
                    | String | CALENDAR_COLOR_KEY
                         A key for looking up a color from the Colorstable. NULL or an empty string are reserved for indicating that the calendar does not use a key for looking up the color. The provider will updateCALENDAR_COLORautomatically when a valid key is written to this column. The key must reference an existing row of theColorstable. @see Colors  Type: TEXT  |  
                    | String | CALENDAR_DISPLAY_NAME
                         The display name of the calendar. Column name.   Type: TEXT  |  
                    | String | CALENDAR_TIME_ZONE
                         The time zone the calendar is associated with.  Type: TEXT |  
                    | Int | CAL_ACCESS_CONTRIBUTOR
                         Full access to modify the calendar, but not the access control settings |  
                    | Int | CAL_ACCESS_EDITOR
                         Full access to modify the calendar, but not the access control settings |  
                    | Int | CAL_ACCESS_FREEBUSY
                         Can only see free/busy information about the calendar |  
                    | Int | CAL_ACCESS_NONE
                         Cannot access the calendar |  
                    | Int | CAL_ACCESS_OVERRIDE
                         not used |  
                    | Int | CAL_ACCESS_OWNER
                         Full access to the calendar |  
                    | Int | CAL_ACCESS_READ
                         Can read all event details |  
                    | Int | CAL_ACCESS_RESPOND
                         Can reply yes/no/maybe to an event |  
                    | Int | CAL_ACCESS_ROOT
                         Domain admin |  
                    | String | CAN_MODIFY_TIME_ZONE
                         Can the organizer modify the time zone of the event? Column name.  Type: INTEGER (boolean) |  
                    | String | CAN_ORGANIZER_RESPOND
                         Can the organizer respond to the event? If no, the status of the organizer should not be shown by the UI. Defaults to 1. Column name.  Type: INTEGER (boolean) |  
                    | String | IS_PRIMARY
                         Is this the primary calendar for this account. If this column is not explicitly set, the provider will return 1 if Calendars.ACCOUNT_NAMEis equal toCalendars.OWNER_ACCOUNT. |  
                    | String | MAX_REMINDERS
                         The maximum number of reminders allowed for an event. Column name.  Type: INTEGER |  
                    | String | OWNER_ACCOUNT
                         The owner account for this calendar, based on the calendar feed. This will be different from the _SYNC_ACCOUNT for delegated calendars. Column name.  Type: String |  
                    | String | SYNC_EVENTS
                         Is this calendar synced and are its events stored on the device? 0 - Do not sync this calendar or store events for this calendar. 1 - Sync down events for this calendar.  Type: INTEGER (boolean) |  
                    | String | VISIBLE
                         Is the calendar selected to be displayed? 0 - do not show events associated with this calendar. 1 - show events associated with this calendar  Type: INTEGER (boolean) |  | 
        
          | From class CalendarSyncColumns
                
                  
                    | String | CAL_SYNC1
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC10
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC2
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC3
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC4
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC5
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC6
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC7
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC8
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  
                    | String | CAL_SYNC9
                         Generic column for use by sync adapters. Column name.  Type: TEXT |  | 
        
          |  | 
      
    
    
      
        
          | Public methods | 
        
          | static EntityIterator! | Creates an entity iterator for the given cursor. | 
      
    
    
      
        
          | Properties | 
        
          | static Uri! | The default Uri used when creating a new calendar EntityIterator. | 
      
    
    Public methods
    
      newEntityIterator
      
      static fun newEntityIterator(cursor: Cursor!): EntityIterator!
      Creates an entity iterator for the given cursor. It assumes the cursor contains a calendars query.
      
      
     
    Properties
    
      CONTENT_URI
      
      static val CONTENT_URI: Uri!
      The default Uri used when creating a new calendar EntityIterator.
     
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]