MRUserActivity Class Reference

Inherits from NSObject
Declared in MRUserActivity.h

Overview

MRUserActivity is an object used to provide details of an item reached by spotlight search.

  mapID

Editor ID of the map the item resides on

@property (nonatomic, strong) NSString *mapID

Declared In

MRUserActivity.h

  locationID

Editor ID of the location the item resides on

@property (nonatomic, strong) NSString *locationID

Declared In

MRUserActivity.h

  itemID

Editor ID of the item (if activityType == MRUserActivityTypePlacemark) the item is a placemark

@property (nonatomic, strong) NSString *itemID

Declared In

MRUserActivity.h

  activityType

Type of item represented by this MRUserActivity

@property (nonatomic, assign) MRUserActivityType activityType

Declared In

MRUserActivity.h

– initWithUserActivity:

A convenient initializer to add placemark details to the MRUserActivity along with instantiation.

- (_Nullable instancetype)initWithUserActivity:(NSUserActivity *)userActivity

Parameters

userActivity

NSUserActivity from the spotlight search

Return Value

An instance of a MRUserActivity

Declared In

MRUserActivity.h