RemoteLauncherOptions Class
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. remotesystems. commanding. RemoteLauncherOptions
- com.
public class RemoteLauncherOptions
This class specifies the options used to launch the default app for URI on a remote device.
Constructor Summary
Constructor | Description |
---|---|
RemoteLauncherOptions() |
Initializes an instance of this class with default values. |
RemoteLauncherOptions(@Nullable String fallbackUri, @Nullable Collection<String> preferredPackageIds) |
Initializes an instance of this class with the specified values. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getFallbackUri()
Returns the URI of the website to open in the event that the original URI cannot be handled by the intended app. |
List<String> |
getPreferredPackageIds()
Returns an array of app / package identifiers that should be used to launch the URI on the remote device. These identifiers should be in a format that can be understood on the remote system (i.e. Package Family Name for Windows remote devices). |
void |
setFallbackUri(@Nullable String fallbackUri)
Sets the URI of the website to open in the event that the original URI cannot be handled by the intended app. |
void |
setPreferredPackageIds(@Nullable Collection<String> preferredPackageIds)
Sets the preferred app / package identifiers that should be used to launch the URI on the remote device. These identifiers should be in a format that can be understood on the remote system (i.e. Package Family Name for Windows remote devices). |
Constructor Details
RemoteLauncherOptions
public RemoteLauncherOptions()
Initializes an instance of this class with default values.
RemoteLauncherOptions
public RemoteLauncherOptions(@Nullable String fallbackUri, @Nullable Collection
Initializes an instance of this class with the specified values.
Parameters:
Method Details
getFallbackUri
public String getFallbackUri()
Returns the URI of the website to open in the event that the original URI cannot be handled by the intended app.
Returns:
getPreferredPackageIds
public List
Returns an array of app / package identifiers that should be used to launch the URI on the remote device. These identifiers should be in a format that can be understood on the remote system (i.e. Package Family Name for Windows remote devices).
Returns:
setFallbackUri
public void setFallbackUri(@Nullable String fallbackUri)
Sets the URI of the website to open in the event that the original URI cannot be handled by the intended app.
Parameters:
setPreferredPackageIds
public void setPreferredPackageIds(@Nullable Collection
Sets the preferred app / package identifiers that should be used to launch the URI on the remote device. These identifiers should be in a format that can be understood on the remote system (i.e. Package Family Name for Windows remote devices).
Parameters: