WebResourceResponse.Data Property

Definition

Gets the input stream that provides the resource response's data. -or- Sets the input stream that provides the resource response's data.

public virtual System.IO.Stream? Data { [Android.Runtime.Register("getData", "()Ljava/io/InputStream;", "GetGetDataHandler")] get; [Android.Runtime.Register("setData", "(Ljava/io/InputStream;)V", "GetSetData_Ljava_io_InputStream_Handler")] set; }
[<get: Android.Runtime.Register("getData", "()Ljava/io/InputStream;", "GetGetDataHandler")>]
[<set: Android.Runtime.Register("setData", "(Ljava/io/InputStream;)V", "GetSetData_Ljava_io_InputStream_Handler")>]
member this.Data : System.IO.Stream with get, set

Property Value

The input stream that provides the resource response's data

Attributes

Remarks

Property getter documentation:

Gets the input stream that provides the resource response's data.

Java documentation for android.webkit.WebResourceResponse.getData().

Property setter documentation:

Sets the input stream that provides the resource response's data. Callers must implement InputStream#read(byte[]). InputStream#close() will be called after the WebView has finished with the response.

Java documentation for android.webkit.WebResourceResponse.setData(java.io.InputStream).

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