VMF_AddToCalendar_Activity
class VMF_AddToCalendar_Activity : VMF_Base_Activityextension VMF_AddToCalendar_Activity: EKEventEditViewDelegateWe can present a custom activity, that allows the user to add the meeting to their calendar.
- 
                  
                  The URL string, which is sent to Messages. DeclarationSwift let meetingEvent: EKEvent?
- 
                  
                  Initializer DeclarationSwift init(meetingEvent inMeetingEvent: EKEvent? = nil, myController inMyController: VMF_MeetingInspectorViewController? = nil)ParametersmeetingEventThe event for this activity (Can be omitted). myControllerThe controller that “owns” this activity. actionButtonThe action button for the screen. We use it to anchor an iPad popover (Can be omitted). 
- 
                  
                  The title string for this activity. DeclarationSwift override var activityTitle: String? { get }
- 
                  
                  The template image for the activity line. DeclarationSwift override var activityImage: UIImage? { get }
- 
                  
                  We have our own custom activity type. DeclarationSwift override var activityType: UIActivity.ActivityType? { get }
- 
                  
                  We extract the event from the items, and return true. DeclarationSwift override func canPerform(withActivityItems inActivityItems: [Any]) -> BoolParameterswithActivityItemsThe activity items (ignored). 
- 
                  
                  This is the execution handler for the activity. DeclarationSwift override func perform()
- 
                  
                  This adds a reminder event for the next meeting start time. See moreDeclarationSwift func addReminderEvent()
- 
                  
                  This displays an alert, for when permission is denied, and allows access to the settings. This can be called from non-main threads. DeclarationSwift func displayPermissionsAlert(header inHeader: String, body inBody: String)ParametersheaderThe header. This can be a lo9calization slug. bodyThe message body. This can be a localization slug. 
- 
                  
                  Called when the event kit has completed with an action to add the reminder to the calendar. DeclarationSwift func eventEditViewController(_ inController: EKEventEditViewController, didCompleteWith inAction: EKEventEditViewAction)ParametersinControllerThe controller we’re talking about. didCompleteWithThe even action that completed. 
 View on GitHub
            View on GitHub
          