java.lang.Object | |
↳ | com.google.android.gms.nearby.connection.Payload.Stream |
Represents a stream of data.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the
InputStream from which to read the data for this Stream. | |||||||||||
Gets the
ParcelFileDescriptor from which to read the data for this Stream. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Gets the InputStream
from which to read the data for this Stream.
When receiving a Payload
of type STREAM
, Nearby Connections
will continuously write the incoming streamed data to this InputStream; when no more data is
available (likely because the sending device stopped streaming data), this InputStream will
be closed.
Returns | |
---|---|
InputStream |
Gets the ParcelFileDescriptor
from which to read the data for this Stream.
When receiving a Payload
of type STREAM
, Nearby Connections
will continuously write the incoming streamed data to this ParcelFileDescriptor; when no more
data is available (likely because the sending device stopped streaming data), this
ParcelFileDescriptor will be closed.
Returns | |
---|---|
ParcelFileDescriptor |