DownloadRequest.Builder Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| DownloadRequest.Builder(Uri, Uri) |
Builds a new DownloadRequest. |
| DownloadRequest.Builder(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
DownloadRequest.Builder(Uri, Uri)
Builds a new DownloadRequest.
[Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Landroid/net/Uri;)V", "", ApiSince=28)]
public Builder(Android.Net.Uri sourceUri, Android.Net.Uri destinationUri);
[<Android.Runtime.Register(".ctor", "(Landroid/net/Uri;Landroid/net/Uri;)V", "", ApiSince=28)>]
new Android.Telephony.Mbms.DownloadRequest.Builder : Android.Net.Uri * Android.Net.Uri -> Android.Telephony.Mbms.DownloadRequest.Builder
Parameters
- sourceUri
- Uri
the source URI for the DownloadRequest to be built. This URI should never be null.
- destinationUri
- Uri
The final location for the file(s) that are to be downloaded. It
must be on the same filesystem as the temp file directory set via
android.telephony.MbmsDownloadSession#setTempFileRootDirectory(File).
The provided path must be a directory that exists. An
IllegalArgumentException will be thrown otherwise.
- Attributes
Remarks
Builds a new DownloadRequest.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
DownloadRequest.Builder(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected Builder(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Telephony.Mbms.DownloadRequest.Builder : nativeint * Android.Runtime.JniHandleOwnership -> Android.Telephony.Mbms.DownloadRequest.Builder
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies whether ownership of the JNI reference transfers to this instance.
Remarks
The runtime calls this constructor to create a managed representation of an existing Java object.