Share via


Signature Constructors

Definition

Overloads

Signature(Byte[])

Create Signature from an existing raw byte array.

Signature(String)

Create Signature from a text representation previously returned by #toChars or #toCharsString().

Signature(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Signature(Byte[])

Create Signature from an existing raw byte array.

[Android.Runtime.Register(".ctor", "([B)V", "")]
public Signature (byte[]? signature);
[<Android.Runtime.Register(".ctor", "([B)V", "")>]
new Android.Content.PM.Signature : byte[] -> Android.Content.PM.Signature

Parameters

signature
Byte[]
Attributes

Remarks

Create Signature from an existing raw byte array.

Java documentation for android.content.pm.Signature.Signature(byte[]).

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

Signature(String)

Create Signature from a text representation previously returned by #toChars or #toCharsString().

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public Signature (string? text);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Content.PM.Signature : string -> Android.Content.PM.Signature

Parameters

text
String

hex-encoded string representing the signature

Attributes

Exceptions

when signature is odd-length

Remarks

Create Signature from a text representation previously returned by #toChars or #toCharsString(). Signatures are expected to be a hex-encoded ASCII string.

Java documentation for android.content.pm.Signature.Signature(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

Signature(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Signature (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.PM.Signature : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.PM.Signature

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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