Język

ZipPathValidator.SetCallback(ZipPathValidator+ICallback) Method

Definition

Sets the callback used to validate ZIP entry paths.

[Android.Runtime.Register("setCallback", "(Ldalvik/system/ZipPathValidator$Callback;)V", "", ApiSince=34)]
public static void SetCallback(Dalvik.SystemInterop.ZipPathValidator.ICallback callback);
[<Android.Runtime.Register("setCallback", "(Ldalvik/system/ZipPathValidator$Callback;)V", "", ApiSince=34)>]
static member SetCallback : Dalvik.SystemInterop.ZipPathValidator.ICallback -> unit

Parameters

callback
ZipPathValidator.ICallback

The non-null callback that validates ZIP entry paths.

Attributes

Remarks

The callback must only validate the path. It should not perform input/output or other blocking operations. A typical callback checks the entry name in one pass and throws ZipException if the path contains potentially hazardous components, such as ...

See the Android setCallback source.

Applies to