NearShareSender Class
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. remotesystems. commanding. nearshare. NearShareSender
- com.
public class NearShareSender
This class is responsible for sending URIs and/or files from one device to another through the nearby sharing feature.
Constructor Summary
| Constructor | Description |
|---|---|
| NearShareSender() |
Creates and initializes a new instance of this class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean |
isNearShareSupported(RemoteSystemConnectionRequest remoteSystemConnectionRequest)
Reports whether all conditions are satisfied for the app to begin sharing with the intended remote device or app (for example, Windows devices must be on the Windows 10 April 2018 Update or later). |
|
Async |
sendFileAsync(RemoteSystemConnectionRequest remoteSystemConnectionRequest, NearShareFileProvider file)
Sends a single file to a remote device or app. |
|
Async |
sendFilesAsync(RemoteSystemConnectionRequest remoteSystemConnectionRequest, NearShareFileProvider[] files)
Sends multiple files to a remote device or app. |
|
Async |
sendUriAsync(RemoteSystemConnectionRequest remoteSystemConnectionRequest, String uri)
Sends a single URI to a remote device or app. |
Constructor Details
NearShareSender
public NearShareSender()
Creates and initializes a new instance of this class.
Method Details
isNearShareSupported
public boolean isNearShareSupported(RemoteSystemConnectionRequest remoteSystemConnectionRequest)
Reports whether all conditions are satisfied for the app to begin sharing with the intended remote device or app (for example, Windows devices must be on the Windows 10 April 2018 Update or later).
Parameters:
Returns:
sendFileAsync
public AsyncOperationWithProgress
Sends a single file to a remote device or app.
Parameters:
Returns:
sendFilesAsync
public AsyncOperationWithProgress
Sends multiple files to a remote device or app.
Parameters:
Returns:
sendUriAsync
public AsyncOperation
Sends a single URI to a remote device or app.
Parameters:
Returns: