setUserActivity

abstract fun setUserActivity(type: String, userInfo: Any?, webpageURL: String = definedExternally)(source)

Creates an NSUserActivity and sets it as the current activity. The activity is eligible for Handoff to another device afterward.