Table of Contents

Class ImageSource

Namespace
IO.Scanbot.Sdk.Image
Assembly
BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/image/ImageSource", DoNotGenerateAcw = true)]
public sealed class ImageSource : Object, IParcelable, IJavaObject, IJavaPeerable, IDisposable
Inheritance
ImageSource
Implements
Inherited Members

Constructors

ImageSource(ImageSourceType, string)

[Register(".ctor", "(Lio/scanbot/sdk/image/ImageSourceType;Ljava/lang/String;)V", "")]
public ImageSource(ImageSourceType type, string filePath)

Parameters

type ImageSourceType
filePath string

ImageSource(JSONObject)

[Register(".ctor", "(Lorg/json/JSONObject;)V", "")]
public ImageSource(JSONObject json)

Parameters

json JSONObject

ImageSource(IDictionary<string, Object>)

[Register(".ctor", "(Ljava/util/Map;)V", "")]
public ImageSource(IDictionary<string, Object> source)

Parameters

source IDictionary<string, Object>

Properties

Creator

[Register("CREATOR")]
public static IParcelableCreator Creator { get; }

Property Value

IParcelableCreator

FilePath

public string FilePath { get; set; }

Property Value

string

Type

public ImageSourceType Type { get; set; }

Property Value

ImageSourceType

Methods

Component1()

[Register("component1", "()Lio/scanbot/sdk/image/ImageSourceType;", "")]
public ImageSourceType Component1()

Returns

ImageSourceType

Component2()

[Register("component2", "()Ljava/lang/String;", "")]
public string Component2()

Returns

string

Copy(ImageSourceType, string)

[Register("copy", "(Lio/scanbot/sdk/image/ImageSourceType;Ljava/lang/String;)Lio/scanbot/sdk/image/ImageSource;", "")]
public ImageSource Copy(ImageSourceType type, string filePath)

Parameters

type ImageSourceType
filePath string

Returns

ImageSource

DescribeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

[Register("describeContents", "()I", "")]
public int DescribeContents()

Returns

int

a bitmask indicating the set of special object types marshaled by this Parcelable object instance.

Remarks

<p>Describe the kinds of special objects contained in this Parcelable

instance's marshaled representation. For example, if the object will include a file descriptor in the output of #writeToParcel(Parcel, int), the return value of this method must include the #CONTENTS_FILE_DESCRIPTOR bit.

Java documentation for

android.os.Parcelable.describeContents()
.

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.

ToJson(ToJsonConfiguration)

[Register("toJson", "(Lio/scanbot/sdk/common/ToJsonConfiguration;)Lorg/json/JSONObject;", "")]
public JSONObject ToJson(ToJsonConfiguration config)

Parameters

config ToJsonConfiguration

Returns

JSONObject

WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

[Register("writeToParcel", "(Landroid/os/Parcel;I)V", "")]
public void WriteToParcel(Parcel dest, ParcelableWriteFlags flags)

Parameters

dest Parcel

The Parcel in which the object should be written.

flags ParcelableWriteFlags

Additional flags about how the object should be written. May be 0 or #PARCELABLE_WRITE_RETURN_VALUE.

Remarks

Flatten this object in to a Parcel.

Java documentation for

android.os.Parcelable.writeToParcel(android.os.Parcel, int)
.

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.