Contents

subscript(_:as:)

Get an XPCEndpoint value in this dictionary.

Declaration

subscript(key: String, as type: XPCEndpoint.Type = XPCEndpoint.self) -> XPCEndpoint? { get }

Parameters

  • key:

    The key under which to get the xpc endpoint.

  • type:

    The expected type of the resulting value.

Return Value

A previously-set endpoint value. If no endpoint was previously set for key, returns nil.