Share via


WebView.SaveWebArchive Method

Definition

Overloads

SaveWebArchive(String)

Saves the current view as a web archive.

SaveWebArchive(String, Boolean, IValueCallback)

Saves the current view as a web archive.

SaveWebArchive(String)

Saves the current view as a web archive.

[Android.Runtime.Register("saveWebArchive", "(Ljava/lang/String;)V", "GetSaveWebArchive_Ljava_lang_String_Handler")]
public virtual void SaveWebArchive (string filename);
[<Android.Runtime.Register("saveWebArchive", "(Ljava/lang/String;)V", "GetSaveWebArchive_Ljava_lang_String_Handler")>]
abstract member SaveWebArchive : string -> unit
override this.SaveWebArchive : string -> unit

Parameters

filename
String

the filename where the archive should be placed

Attributes

Remarks

Saves the current view as a web archive.

Java documentation for android.webkit.WebView.saveWebArchive(java.lang.String).

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

SaveWebArchive(String, Boolean, IValueCallback)

Saves the current view as a web archive.

[Android.Runtime.Register("saveWebArchive", "(Ljava/lang/String;ZLandroid/webkit/ValueCallback;)V", "GetSaveWebArchive_Ljava_lang_String_ZLandroid_webkit_ValueCallback_Handler")]
public virtual void SaveWebArchive (string basename, bool autoname, Android.Webkit.IValueCallback? callback);
[<Android.Runtime.Register("saveWebArchive", "(Ljava/lang/String;ZLandroid/webkit/ValueCallback;)V", "GetSaveWebArchive_Ljava_lang_String_ZLandroid_webkit_ValueCallback_Handler")>]
abstract member SaveWebArchive : string * bool * Android.Webkit.IValueCallback -> unit
override this.SaveWebArchive : string * bool * Android.Webkit.IValueCallback -> unit

Parameters

basename
String

the filename where the archive should be placed

autoname
Boolean

if false, takes basename to be a file. If true, basename is assumed to be a directory in which a filename will be chosen according to the URL of the current page.

callback
IValueCallback

called after the web archive has been saved. The parameter for onReceiveValue will either be the filename under which the file was saved, or null if saving the file failed.

Attributes

Remarks

Saves the current view as a web archive.

Java documentation for android.webkit.WebView.saveWebArchive(java.lang.String, boolean, android.webkit.ValueCallback<java.lang.String>).

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