Share via


MCSession.StartStream(String, MCPeerID, NSError) Method

Definition

Creates a named stream to peerID.

[Foundation.Export("startStreamWithName:toPeer:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSOutputStream? StartStream(string streamName, MultipeerConnectivity.MCPeerID peerID, out Foundation.NSError error);
[<Foundation.Export("startStreamWithName:toPeer:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member StartStream : string * MultipeerConnectivity.MCPeerID * NSError -> Foundation.NSOutputStream
override this.StartStream : string * MultipeerConnectivity.MCPeerID * NSError -> Foundation.NSOutputStream

Parameters

streamName
String
peerID
MCPeerID
error
NSError

Returns

A byte stream or null if the stream could not be created.

Attributes

Applies to