Contents

connectionView(_:titleFor:)

Tells the delegate that the connection view needs a title to display for its current state.

Declaration

func connectionView(_ connectionView: PlaygroundBluetoothConnectionView, titleFor state: PlaygroundBluetoothConnectionView.State) -> String

Parameters

  • connectionView:

    The connection view that’s entering this state.

  • state:

    The state of the view. The state is one of the cases of the State enumeration.

Return Value

A localized string corresponding to the current state of the view.

See Also

Displaying New Peripherals