We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesNearby Servicenearby.transferDataStream

transfer.Data.Stream

CLASS info
public static class Stream
Data stream.

Public Method Summary

Return TypeMethod Name
InputStreamasInputStream()
Obtains InputStream from Data.Stream. When receiving a payload of the string type, Nearby Transfer will continuously write input data streams to the InputStream. When no more data is available (for example, the sending device stops sending data streams), the InputStream is closed.
ParcelFileDescriptorasParcelFileDescriptor()
Obtains ParcelFileDescriptor from Data.Stream.

Public Methods

Method
public InputStream asInputStream()
Obtains InputStream from Data.Stream. When receiving a payload of the string type, Nearby Transfer will continuously write input data streams to the InputStream. When no more data is available (for example, the sending device stops sending data streams), the InputStream is closed.
Method
public ParcelFileDescriptor asParcelFileDescriptor()
Obtains ParcelFileDescriptor from Data.Stream.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.