Table of Contents

Class PageFileStorage

Namespace
IO.Scanbot.Sdk.Persistence
Assembly
DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/persistence/PageFileStorage", DoNotGenerateAcw = true)]
public class PageFileStorage : Object, IJavaObject, IJavaPeerable, IDisposable
Inheritance
PageFileStorage
Implements
Derived
Inherited Members

Constructors

PageFileStorage(PageStorageProcessor, IPageStorage, IFileIOProcessor)

[Register(".ctor", "(Lio/scanbot/sdk/persistence/PageStorageProcessor;Lio/scanbot/sdk/persistence/PageStorage;Lio/scanbot/sdk/persistence/fileio/FileIOProcessor;)V", "")]
public PageFileStorage(PageStorageProcessor pageStorageProcessor, IPageStorage pageStorage, IFileIOProcessor fileIOProcessor)

Parameters

pageStorageProcessor PageStorageProcessor
pageStorage IPageStorage
fileIOProcessor IFileIOProcessor

PageFileStorage(nint, JniHandleOwnership)

protected PageFileStorage(nint javaReference, JniHandleOwnership transfer)

Parameters

javaReference nint
transfer JniHandleOwnership

Properties

A

[Register("a")]
public PageStorageProcessor A { get; set; }

Property Value

PageStorageProcessor

B

[Register("b")]
public IPageStorage B { get; set; }

Property Value

IPageStorage

C

[Register("c")]
public IFileIOProcessor C { get; set; }

Property Value

IFileIOProcessor

StoredPages

public IList<string> StoredPages { get; }

Property Value

IList<string>

Methods

Add(Bitmap)

[Register("add", "(Landroid/graphics/Bitmap;)Ljava/lang/String;", "")]
public string Add(Bitmap image)

Parameters

image Bitmap

Returns

string

Add(Bitmap, PageImageSource)

[Register("add", "(Landroid/graphics/Bitmap;Lio/scanbot/sdk/persistence/PageImageSource;)Ljava/lang/String;", "")]
public string Add(Bitmap image, PageImageSource pageImageSource)

Parameters

image Bitmap
pageImageSource PageImageSource

Returns

string

Add(Bitmap, Configuration)

[Register("add", "(Landroid/graphics/Bitmap;Lio/scanbot/sdk/persistence/PageStorageProcessor$Configuration;)Lio/scanbot/sdk/persistence/Page;", "")]
public Page Add(Bitmap image, PageStorageProcessor.Configuration configuration)

Parameters

image Bitmap
configuration PageStorageProcessor.Configuration

Returns

Page

Add(byte[])

[Register("add", "([B)Ljava/lang/String;", "")]
public string Add(byte[] image)

Parameters

image byte[]

Returns

string

Add(byte[], PageImageSource)

[Register("add", "([BLio/scanbot/sdk/persistence/PageImageSource;)Ljava/lang/String;", "")]
public string Add(byte[] image, PageImageSource pageImageSource)

Parameters

image byte[]
pageImageSource PageImageSource

Returns

string

Add(byte[], Configuration)

[Register("add", "([BLio/scanbot/sdk/persistence/PageStorageProcessor$Configuration;)Lio/scanbot/sdk/persistence/Page;", "")]
public Page Add(byte[] image, PageStorageProcessor.Configuration configuration)

Parameters

image byte[]
configuration PageStorageProcessor.Configuration

Returns

Page

GenerateAndSetFilteredPreviewForId(Bitmap, string, ParametricFilter)

[Register("generateAndSetFilteredPreviewForId", "(Landroid/graphics/Bitmap;Ljava/lang/String;Lio/scanbot/imagefilters/ParametricFilter;)Landroid/graphics/Bitmap;", "")]
public Bitmap GenerateAndSetFilteredPreviewForId(Bitmap filteredImage, string existingPageId, ParametricFilter parametricFilter)

Parameters

filteredImage Bitmap
existingPageId string
parametricFilter ParametricFilter

Returns

Bitmap

GenerateAndSetFilteredPreviewForId(byte[], string, ParametricFilter)

[Register("generateAndSetFilteredPreviewForId", "([BLjava/lang/String;Lio/scanbot/imagefilters/ParametricFilter;)Landroid/graphics/Bitmap;", "")]
public Bitmap GenerateAndSetFilteredPreviewForId(byte[] filteredImage, string existingPageId, ParametricFilter parametricFilter)

Parameters

filteredImage byte[]
existingPageId string
parametricFilter ParametricFilter

Returns

Bitmap

GetFilteredPreviewImage(string, ParametricFilter, Options)

[Register("getFilteredPreviewImage", "(Ljava/lang/String;Lio/scanbot/imagefilters/ParametricFilter;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public Bitmap GetFilteredPreviewImage(string pageId, ParametricFilter parametricFilter, BitmapFactory.Options options)

Parameters

pageId string
parametricFilter ParametricFilter
options BitmapFactory.Options

Returns

Bitmap

GetFilteredPreviewImageURI(string, ParametricFilter)

[Register("getFilteredPreviewImageURI", "(Ljava/lang/String;Lio/scanbot/imagefilters/ParametricFilter;)Landroid/net/Uri;", "")]
public Uri GetFilteredPreviewImageURI(string pageId, ParametricFilter parametricFilter)

Parameters

pageId string
parametricFilter ParametricFilter

Returns

Uri

GetImage(File, Options)

[Register("getImage", "(Ljava/io/File;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public Bitmap GetImage(File imageFile, BitmapFactory.Options options)

Parameters

imageFile File
options BitmapFactory.Options

Returns

Bitmap

GetImage(string, PageFileType, Options)

[Register("getImage", "(Ljava/lang/String;Lio/scanbot/sdk/persistence/PageFileStorage$PageFileType;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public Bitmap GetImage(string pageId, PageFileStorage.PageFileType type, BitmapFactory.Options options)

Parameters

pageId string
type PageFileStorage.PageFileType
options BitmapFactory.Options

Returns

Bitmap

GetImageURI(string, PageFileType)

[Register("getImageURI", "(Ljava/lang/String;Lio/scanbot/sdk/persistence/PageFileStorage$PageFileType;)Landroid/net/Uri;", "")]
public Uri GetImageURI(string pageId, PageFileStorage.PageFileType type)

Parameters

pageId string
type PageFileStorage.PageFileType

Returns

Uri

GetPreviewImage(string, PageFileType, Options)

[Register("getPreviewImage", "(Ljava/lang/String;Lio/scanbot/sdk/persistence/PageFileStorage$PageFileType;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public Bitmap GetPreviewImage(string pageId, PageFileStorage.PageFileType type, BitmapFactory.Options options)

Parameters

pageId string
type PageFileStorage.PageFileType
options BitmapFactory.Options

Returns

Bitmap

GetPreviewImageURI(string, PageFileType)

[Register("getPreviewImageURI", "(Ljava/lang/String;Lio/scanbot/sdk/persistence/PageFileStorage$PageFileType;)Landroid/net/Uri;", "")]
public Uri GetPreviewImageURI(string pageId, PageFileStorage.PageFileType type)

Parameters

pageId string
type PageFileStorage.PageFileType

Returns

Uri

Remove(string)

[Register("remove", "(Ljava/lang/String;)Z", "")]
public bool Remove(string pageId)

Parameters

pageId string

Returns

bool

RemoveAll()

[Register("removeAll", "()Z", "")]
public bool RemoveAll()

Returns

bool

RemoveAll(IList<string>)

[Register("removeAll", "(Ljava/util/List;)V", "")]
public void RemoveAll(IList<string> pageIds)

Parameters

pageIds IList<string>

RemoveAllExcept(IList<string>)

[Register("removeAllExcept", "(Ljava/util/List;)V", "")]
public void RemoveAllExcept(IList<string> pageIds)

Parameters

pageIds IList<string>

RemoveFilteredPreviewImages(string)

[Register("removeFilteredPreviewImages", "(Ljava/lang/String;)V", "")]
public void RemoveFilteredPreviewImages(string pageId)

Parameters

pageId string

SetFilteredPreviewForId(Bitmap, string, ParametricFilter)

[Register("setFilteredPreviewForId", "(Landroid/graphics/Bitmap;Ljava/lang/String;Lio/scanbot/imagefilters/ParametricFilter;)V", "")]
public void SetFilteredPreviewForId(Bitmap filteredPreview, string existingPageId, ParametricFilter parametricFilter)

Parameters

filteredPreview Bitmap
existingPageId string
parametricFilter ParametricFilter

SetFilteredPreviewForId(byte[], string, ParametricFilter)

[Register("setFilteredPreviewForId", "([BLjava/lang/String;Lio/scanbot/imagefilters/ParametricFilter;)V", "")]
public void SetFilteredPreviewForId(byte[] filteredPreview, string existingPageId, ParametricFilter parametricFilter)

Parameters

filteredPreview byte[]
existingPageId string
parametricFilter ParametricFilter

SetImageForId(Bitmap, string, PageFileType)

[Register("setImageForId", "(Landroid/graphics/Bitmap;Ljava/lang/String;Lio/scanbot/sdk/persistence/PageFileStorage$PageFileType;)V", "")]
public void SetImageForId(Bitmap image, string existingPageId, PageFileStorage.PageFileType type)

Parameters

image Bitmap
existingPageId string
type PageFileStorage.PageFileType

SetImageForId(byte[], string, PageFileType)

[Register("setImageForId", "([BLjava/lang/String;Lio/scanbot/sdk/persistence/PageFileStorage$PageFileType;)V", "")]
public void SetImageForId(byte[] image, string existingPageId, PageFileStorage.PageFileType type)

Parameters

image byte[]
existingPageId string
type PageFileStorage.PageFileType