XuniCalendar Class Reference

Inherits from XuniView : UIView
Declared in XuniCalendar.h

Overview

XuniCalendar Class.

XuniCalendar Class.

Other Methods

  delegate

Gets or sets the delegate for handling notifications.

@property (nonatomic, weak) id<XuniCalendarDelegate> delegate

Discussion

Gets or sets the delegate for handling notifications.

Declared In

XuniCalendar.h

  xfCalendarSize

Gets or sets the size of the calendar on Xamarin Form.

@property (nonatomic) CGSize xfCalendarSize

Discussion

Gets or sets the size of the calendar on Xamarin Form.

Declared In

XuniCalendar.h

  textColor

Gets or sets the color of the text within the calendar(test only).

@property (nonatomic) IBInspectable UIColor *textColor

Discussion

Gets or sets the color of the text within the calendar(test only).

Declared In

XuniCalendar.h

  backgroundColor

Gets or sets the background color of the calendar.

@property (nonatomic) IBInspectable UIColor *backgroundColor

Discussion

Gets or sets the background color of the calendar.

Declared In

XuniCalendar.h

  borderColor

Gets or sets the color of the calendar’s border.

@property (nonatomic) IBInspectable UIColor *borderColor

Discussion

Gets or sets the color of the calendar’s border.

Declared In

XuniCalendar.h

  borderWidth

Gets or sets the width of the calendar’s border.

@property (nonatomic) IBInspectable double borderWidth

Discussion

Gets or sets the width of the calendar’s border.

Declared In

XuniCalendar.h

  viewMode

Gets or sets a value indicating whether the calendar displays a month, year or decade view.

@property (nonatomic) XuniCalendarViewMode viewMode

Discussion

Gets or sets a value indicating whether the calendar displays a month, year or decade view.

Declared In

XuniCalendar.h

  displayDate

Gets or sets a value specifying the currently displayed date of the year.

@property (nonatomic) NSDate *displayDate

Discussion

Gets or sets a value specifying the currently displayed date of the year.

Declared In

XuniCalendar.h

  maxDate

Gets or sets the latest date that the user can select in the calendar.

@property (nonatomic) NSDate *maxDate

Discussion

Gets or sets the latest date that the user can select in the calendar.

Declared In

XuniCalendar.h

  minDate

Gets or sets the earliest date that the user can select in the calendar.

@property (nonatomic) NSDate *minDate

Discussion

Gets or sets the earliest date that the user can select in the calendar.

Declared In

XuniCalendar.h

  firstDayOfWeek

Gets or sets a value that represents the first day of the week, the one displayed in the first column of the calendar.

@property (nonatomic) XuniDayOfWeek firstDayOfWeek

Discussion

Gets or sets a value that represents the first day of the week, the one displayed in the first column of the calendar.

Declared In

XuniCalendar.h

  calendarFont

Gets or sets the font for the calendar.

@property (nonatomic) UIFont *calendarFont

Discussion

Gets or sets the font for the calendar.

Declared In

XuniCalendar.h

  isAnimated

Gets or sets whether the control is animated during navigation.

@property (nonatomic) IBInspectable BOOL isAnimated

Discussion

Gets or sets whether the control is animated during navigation.

Declared In

XuniCalendar.h

  isEnabled

Gets or sets whether the control is enabled.

@property (nonatomic) IBInspectable BOOL isEnabled

Discussion

Gets or sets whether the control is enabled.

Declared In

XuniCalendar.h

  maxSelectionCount

Gets or sets the maximum number of days that can be selected.

@property (nonatomic) IBInspectable int maxSelectionCount

Discussion

Gets or sets the maximum number of days that can be selected.

Declared In

XuniCalendar.h

  navigateAnimation

Gets or sets an object containing the animation settings that will be applied when navigating backwards or forward.

@property (nonatomic) XuniAnimation *navigateAnimation

Discussion

Gets or sets an object containing the animation settings that will be applied when navigating backwards or forward.

Declared In

XuniCalendar.h

  viewModeAnimation

Gets or sets an object containing the animation settings that will be applied when changing the viewMode.

@property (nonatomic) XuniCalendarViewModeAnimation *viewModeAnimation

Discussion

Gets or sets an object containing the animation settings that will be applied when changing the viewMode.

Declared In

XuniCalendar.h

  orientation

Gets or sets a value indicating which orientation the calendar navigates.

@property (nonatomic) XuniCalendarOrientation orientation

Discussion

Gets or sets a value indicating which orientation the calendar navigates.

Declared In

XuniCalendar.h

  showNavigationButtons

Gets or sets a value indicating whether the control displays the default navigation buttons.

@property (nonatomic) IBInspectable BOOL showNavigationButtons

Discussion

Gets or sets a value indicating whether the control displays the default navigation buttons.

Declared In

XuniCalendar.h

  showHeader

Gets or sets a value indicating whether the control displays the header area with the current month and navigation buttons.

@property (nonatomic) IBInspectable BOOL showHeader

Discussion

Gets or sets a value indicating whether the control displays the header area with the current month and navigation buttons.

Declared In

XuniCalendar.h

  disabledTextColor

Gets or sets the color of the disabled text in the calendar.

@property (nonatomic) IBInspectable UIColor *disabledTextColor

Discussion

Gets or sets the color of the disabled text in the calendar.

Declared In

XuniCalendar.h

  adjacentDaySlotTemplate

Gets or sets a data template that defines the UI representation for a single adjacent day on the calendar.

@property (nonatomic) id<IAdjacentDaySlotTemplate> adjacentDaySlotTemplate

Discussion

Gets or sets a data template that defines the UI representation for a single adjacent day on the calendar.

Declared In

XuniCalendar.h

  adjacentDayTextColor

Gets or sets the color of the adjacent days text.

@property (nonatomic) IBInspectable UIColor *adjacentDayTextColor

Discussion

Gets or sets the color of the adjacent days text.

Declared In

XuniCalendar.h

  dayBorderColor

Gets or sets the color used for the border between day slots.

@property (nonatomic) IBInspectable UIColor *dayBorderColor

Discussion

Gets or sets the color used for the border between day slots.

Declared In

XuniCalendar.h

  dayBorderWidth

Gets or sets the border thickness between day slots.

@property (nonatomic) IBInspectable double dayBorderWidth

Discussion

Gets or sets the border thickness between day slots.

Declared In

XuniCalendar.h

  daySlotTemplate

Gets or sets a data template that defines the UI representation for a single day of the month.

@property (nonatomic) id<IDaySlotTemplate> daySlotTemplate

Discussion

Gets or sets a data template that defines the UI representation for a single day of the month.

Declared In

XuniCalendar.h

  todayBackgroundColor

Gets or sets the color used to highlight the background of the today day slot.

@property (nonatomic) IBInspectable UIColor *todayBackgroundColor

Discussion

Gets or sets the color used to highlight the background of the today day slot.

Declared In

XuniCalendar.h

  todayTextColor

Gets or sets the color for the text of the today day slot.

@property (nonatomic) IBInspectable UIColor *todayTextColor

Discussion

Gets or sets the color for the text of the today day slot.

Declared In

XuniCalendar.h

  todayFont

Gets or sets the font for today.

@property (nonatomic) UIFont *todayFont

Discussion

Gets or sets the font for today.

Declared In

XuniCalendar.h

  dayOfWeekBackgroundColor

Gets or sets the background color for the day of week slots.

@property (nonatomic) IBInspectable UIColor *dayOfWeekBackgroundColor

Discussion

Gets or sets the background color for the day of week slots.

Declared In

XuniCalendar.h

  dayOfWeekFont

Gets or sets the font for the day of weeks.

@property (nonatomic) UIFont *dayOfWeekFont

Discussion

Gets or sets the font for the day of weeks.

Declared In

XuniCalendar.h

  dayOfWeekFormat

Gets or sets the format which is used for representing day of week names.

@property (nonatomic) XuniDayOfWeekFormat dayOfWeekFormat

Discussion

Gets or sets the format which is used for representing day of week names.

Declared In

XuniCalendar.h

  dayOfWeekSlotTemplate

Gets or sets a data template that defines the UI representation for a day of the week.

@property (nonatomic) id<IDayOfWeekSlotTemplate> dayOfWeekSlotTemplate

Discussion

Gets or sets a data template that defines the UI representation for a day of the week.

Declared In

XuniCalendar.h

  dayOfWeekTextColor

Gets or sets the color of the text displayed in the day of week slots.

@property (nonatomic) IBInspectable UIColor *dayOfWeekTextColor

Discussion

Gets or sets the color of the text displayed in the day of week slots.

Declared In

XuniCalendar.h

  headerBackgroundColor

Gets or sets the background color for the header.

@property (nonatomic) IBInspectable UIColor *headerBackgroundColor

Discussion

Gets or sets the background color for the header.

Declared In

XuniCalendar.h

  headerFont

Gets or sets the font for the header.

@property (nonatomic) UIFont *headerFont

Discussion

Gets or sets the font for the header.

Declared In

XuniCalendar.h

  headerTextColor

Gets or sets the color for the header text.

@property (nonatomic) IBInspectable UIColor *headerTextColor

Discussion

Gets or sets the color for the header text.

Declared In

XuniCalendar.h

  headerMonthFormat

Gets or sets the month format for the header text.

@property (nonatomic) IBInspectable NSString *headerMonthFormat

Discussion

Gets or sets the month format for the header text.

Declared In

XuniCalendar.h

  valueFormatter

Gets or sets the value format.

@property (nonatomic) NSObject<IXuniValueFormatter> *valueFormatter

Discussion

Gets or sets the value format.

Declared In

XuniCalendar.h

  headerLoading

Gets or sets the headerLoading event.

@property (nonatomic) XuniEvent *headerLoading

Discussion

Gets or sets the headerLoading event.

Declared In

XuniCalendar.h

  selectedDate

Gets or sets the currently selected date.

@property (nonatomic) NSDate *selectedDate

Discussion

Gets or sets the currently selected date.

Declared In

XuniCalendar.h

  selectedDates

Gets or sets the list of selected dates.

@property (nonatomic) XuniCalendarRange *selectedDates

Discussion

Gets or sets the list of selected dates.

Declared In

XuniCalendar.h

  selectionBackgroundColor

Gets or sets the color used to highlight selected dates.

@property (nonatomic) IBInspectable UIColor *selectionBackgroundColor

Discussion

Gets or sets the color used to highlight selected dates.

Declared In

XuniCalendar.h

  selectionTextColor

Gets or sets the color for selected date text.

@property (nonatomic) IBInspectable UIColor *selectionTextColor

Discussion

Gets or sets the color for selected date text.

Declared In

XuniCalendar.h

– getDecriptor:

Get descriptor of the font.

- (UIFontDescriptor *)getDecriptor:(NSMutableDictionary *)attributes

Parameters

attributes

The font attributes.

Return Value

Font descriptor.

Discussion

Get descriptor of the font.

Declared In

XuniCalendar.h

– getImage:

Get image form url.

- (UIImage *)getImage:(NSString *)urlString

Parameters

urlString

The url string.

Return Value

UIImage.

Discussion

Get image form url.

Declared In

XuniCalendar.h

– refresh

Refresh the calendar control.

- (void)refresh

Discussion

Refresh the calendar control.

Declared In

XuniCalendar.h

– changeViewModeAsync:date:

Changes the view mode asynchronously performing an animation.

- (void)changeViewModeAsync:(XuniCalendarViewMode)mode date:(NSDate *)date

Parameters

mode

The view mode.

date

The display date.

Discussion

Changes the view mode asynchronously performing an animation.

Declared In

XuniCalendar.h

– goForwardAsync

Navigates the calendar control forward.

- (void)goForwardAsync

Discussion

Navigates the calendar control forward.

Declared In

XuniCalendar.h

– goBackwardAsync

Navigates the calendar control backward.

- (void)goBackwardAsync

Discussion

Navigates the calendar control backward.

Declared In

XuniCalendar.h

Extension Methods

  renderEngine

Gets the render engine.

@property (readonly) XuniRenderEngine *renderEngine

Discussion

Gets the render engine.

Declared In

XuniCalendarPrivate.h

  currentDate

Gets or sets the current date.

@property (nonatomic) NSDate *currentDate

Discussion

Gets or sets the current date.

Declared In

XuniCalendarPrivate.h

  currentMonth

Gets or sets the current month.

@property (nonatomic) NSDate *currentMonth

Discussion

Gets or sets the current month.

Declared In

XuniCalendarPrivate.h

  highlightDate

Gets or sets the date for highlight in year/decade view.

@property (nonatomic) NSDate *highlightDate

Discussion

Gets or sets the date for highlight in year/decade view.

Declared In

XuniCalendarPrivate.h

  currentViewIndex

Gets or sets the current view index.

@property (nonatomic) NSInteger currentViewIndex

Discussion

Gets or sets the current view index.

Declared In

XuniCalendarPrivate.h

  bodyView

Gets or sets the scroll view.

@property (nonatomic) UIView *bodyView

Discussion

Gets or sets the scroll view.

Declared In

XuniCalendarPrivate.h

  dateUtil

Gets the date util.

@property (readonly) XuniDateUtil *dateUtil

Discussion

Gets the date util.

Declared In

XuniCalendarPrivate.h

– isDateDisabled:

Returns whether a date is disabled.

- (BOOL)isDateDisabled:(NSDate *)date

Parameters

date

The date.

Return Value

YES if the given date is disabled, otherwise NO.

Discussion

Returns whether a date is disabled.

Declared In

XuniCalendarPrivate.h

– getDaySlotIndex:

Returns the index of day slot in month view.

- (NSInteger)getDaySlotIndex:(XuniCalendarDaySlotBase *)daySlot

Parameters

daySlot

The day slot.

Return Value

The index of day slot.

Discussion

Returns the index of day slot in month view.

Declared In

XuniCalendarPrivate.h

– handleDaySlotTapGesture:

Handle day slot tap gesture.

- (void)handleDaySlotTapGesture:(XuniCalendarDaySlot *)daySlot

Parameters

daySlot

The tapped day slot.

Discussion

Handle day slot tap gesture.

Declared In

XuniCalendarPrivate.h

– handleViewDaySlotTapGesture:

Handle day slot tap gesture.

- (void)handleViewDaySlotTapGesture:(XuniCalendarViewDaySlot *)daySlot

Parameters

daySlot

The tapped day slot.

Discussion

Handle day slot tap gesture.

Declared In

XuniCalendarPrivate.h

– selectAdjacentView:

Select adjacent view of the calendar.

- (void)selectAdjacentView:(NSInteger)index

Parameters

index

The index to add to current view.

Discussion

Select adjacent view of the calendar.

Declared In

XuniCalendarPrivate.h

– isAdjacentMonthOrYearDisabled:

Returns whether the adjacent month or year is disabled.

- (BOOL)isAdjacentMonthOrYearDisabled:(NSInteger)index

Parameters

index

The index, 1 next, -1 prev.

Return Value

YES disabled, otherwise NO.

Discussion

Returns whether the adjacent month or year is disabled.

Declared In

XuniCalendarPrivate.h