CalendarsManager.GetDefaultCalendar

Syntax:

GetDefaultCalendar()

Returned value:

Type: LocalCalendarKey.

Description:

It obtains the main calendar.
  • For Android devices - non-local calendar with the biggest number of records is defined. If calendars with the same number of records are found, the calendar with the lowest identifier is used. If such calendar is not found, search for a local calendar with the biggest number of records is executed. If calendars with the same number of records are found, the calendar with the lowest identifier will be selected. If no calendars are available, a calendar named "LOCAL" for a dummy account will be created (with "LOCAL" name and type).
  • For iOS devices - a standard system method is used.

Availability:

Mobile application (client).

    

1C:Enterprise Developer's Community