Table of Contents

Class DocumentStoreStrategy

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

Constructors

DocumentStoreStrategy(Context, ISharedPreferences)

[Register(".ctor", "(Landroid/content/Context;Landroid/content/SharedPreferences;)V", "")]
public DocumentStoreStrategy(Context context, ISharedPreferences preferences)

Parameters

context Context
preferences ISharedPreferences

Fields

D

[Register("d")]
public const string D = "thumbnail"

Field Value

string

E

[Register("e")]
public const string E = "snapping_documents"

Field Value

string

F

[Register("f")]
public const string F = "%s(%d)%s"

Field Value

string

G

[Register("g")]
public const string G = " (1)."

Field Value

string

Properties

B

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

Property Value

ISharedPreferences

C

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

Property Value

ILogger

DocumentsDir

public File DocumentsDir { get; }

Property Value

File

DocumentsFiles

public IList<File> DocumentsFiles { get; }

Property Value

IList<File>

Methods

A(File, string)

[Register("a", "(Ljava/io/File;Ljava/lang/String;)Z", "")]
public static bool A(File dir, string filename)

Parameters

dir File
filename string

Returns

bool

EnsureDocumentDir(File)

[Register("ensureDocumentDir", "(Ljava/io/File;)Z", "")]
public bool EnsureDocumentDir(File docDir)

Parameters

docDir File

Returns

bool

EnsureDocumentDirectory(string)

[Register("ensureDocumentDirectory", "(Ljava/lang/String;)V", "")]
public void EnsureDocumentDirectory(string docId)

Parameters

docId string

EraseDocument(string, string)

[Register("eraseDocument", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public void EraseDocument(string docId, string docName)

Parameters

docId string
docName string

EraseDocumentThumbnail(string)

[Register("eraseDocumentThumbnail", "(Ljava/lang/String;)V", "")]
public void EraseDocumentThumbnail(string docId)

Parameters

docId string

GetDocumentDir(string)

[Register("getDocumentDir", "(Ljava/lang/String;)Ljava/io/File;", "")]
public File GetDocumentDir(string docId)

Parameters

docId string

Returns

File

GetDocumentFile(string, string)

[Register("getDocumentFile", "(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;", "")]
public File GetDocumentFile(string docId, string name)

Parameters

docId string
name string

Returns

File

GetPageImagePath(int, Document)

[Register("getPageImagePath", "(ILio/scanbot/sdk/entity/Document;)Ljava/lang/String;", "")]
public string GetPageImagePath(int pagePosition, Document document)

Parameters

pagePosition int
document Document

Returns

string

GetThumbnailFile(string)

[Register("getThumbnailFile", "(Ljava/lang/String;)Ljava/io/File;", "")]
public File GetThumbnailFile(string docId)

Parameters

docId string

Returns

File

GetUniqueName(string)

[Register("getUniqueName", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public string GetUniqueName(string newName)

Parameters

newName string

Returns

string

MigrateDocuments(string, IList<Document>)

[Register("migrateDocuments", "(Ljava/lang/String;Ljava/util/List;)V", "")]
public void MigrateDocuments(string newPath, IList<Document> documents)

Parameters

newPath string
documents IList<Document>

RenameDocument(string, string, string)

[Register("renameDocument", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "")]
public bool RenameDocument(string docId, string oldName, string newName)

Parameters

docId string
oldName string
newName string

Returns

bool