Contents

setObjects(_:localOnly:expirationDate:)

Sets and configures an array of item providers for the pasteboard, based on a specified array of objects.

Declaration

func setObjects<T>(_ objects: [T], localOnly: Bool, expirationDate: Date?) where T : _ObjectiveCBridgeable, T._ObjectiveCType : NSItemProviderWriting

Parameters

  • objects:

    An array of item providers for the pasteboard.

  • localOnly:

    If False, the pasteboard items are available to other devices through the Handoff feature; if True, the pasteboard items are only available to the local device.

  • expirationDate:

    An Nsdate value that specifies the time and date that you want the system to remove the pasteboard items from the pasteboard.

See Also

Getting and setting item providers