fromKindOrNull

fun fromKindOrNull(kind: Int, value: String?): ShareReceiver?

The non-throwing fromKind, returning null for a kind this build does not know or a missing identifier.

Use this when decoding values that arrived over AIDL. The services are exported and the two sides ship independently, so (kind, value) is untrusted input: fromKind would raise on a binder thread, where an exception costs the process rather than the call.