VMF_OpenLocationIn_Activity
class VMF_OpenLocationIn_Activity : VMF_Base_Activity
We can present a custom activity, that allows the user to open a location, using an installed app.
-
This enum abstracts the particulars of having multiple apps that can deal with the location.
See moreDeclaration
Swift
enum LocationHandlerApp -
This is the enum with the app, and the location (associated value).
Declaration
Swift
let app: LocationHandlerApp -
Default Initializer.
Declaration
Swift
init(app inApp: LocationHandlerApp, myController inMyController: VMF_MeetingInspectorViewController?)Parameters
appThe app enum case for this activity.
myControllerThe controller that “owns” this activity.
-
The title string for this activity.
Declaration
Swift
override var activityTitle: String? { get } -
The template image for the activity line.
Declaration
Swift
override var activityImage: UIImage? { get } -
We have our own custom activity type.
Declaration
Swift
override var activityType: UIActivity.ActivityType? { get } -
Declaration
Swift
override func canPerform(withActivityItems: [Any]) -> BoolParameters
withActivityItemsThe activity items (ignored). We return true, if the app is installed.
-
This is the execution handler for the activity.
Declaration
Swift
override func perform()
View on GitHub