@@ -1457,22 +1457,46 @@ public double getFirstVisibleHour(){
1457
1457
/////////////////////////////////////////////////////////////////
1458
1458
1459
1459
public interface EventClickListener {
1460
+ /**
1461
+ * Triggered when clicked on one existing event
1462
+ * @param event: event clicked.
1463
+ * @param eventRect: view containing the clicked event.
1464
+ */
1460
1465
public void onEventClick (WeekViewEvent event , RectF eventRect );
1461
1466
}
1462
1467
1463
1468
public interface MonthChangeListener {
1469
+ /**
1470
+ * Very important interface, it's the base to load events in the calendar.
1471
+ * @param newYear: year of the events required by the view.
1472
+ * @param newMonth: month of the events required by the view.
1473
+ * @return a list of the events happening <strong>during the specified month</strong>.
1474
+ */
1464
1475
public List <WeekViewEvent > onMonthChange (int newYear , int newMonth );
1465
1476
}
1466
1477
1467
1478
public interface EventLongPressListener {
1479
+ /**
1480
+ * Similar to #EventClickListener but with a long press.
1481
+ * @param event: event clicked.
1482
+ * @param eventRect: view containing the clicked event.
1483
+ */
1468
1484
public void onEventLongPress (WeekViewEvent event , RectF eventRect );
1469
1485
}
1470
1486
1471
1487
public interface EmptyViewClickListener {
1488
+ /**
1489
+ * Triggered when the users clicks on a empty space of the calendar.
1490
+ * @param time: #Calendar object set with the date and time of the clicked position on the view.
1491
+ */
1472
1492
public void onEmptyViewClicked (Calendar time );
1473
1493
}
1474
1494
1475
1495
public interface EmptyViewLongPressListener {
1496
+ /**
1497
+ * Similar to EmptyViewClickListener but with long press.
1498
+ * @param time: #Calendar object set with the date and time of the long pressed position on the view.
1499
+ */
1476
1500
public void onEmptyViewLongPress (Calendar time );
1477
1501
}
1478
1502
0 commit comments