C# Class CrossPlatformSample.HomePage

Defines the home page of the application.
Inheritance: Xamarin.Forms.ContentPage
Afficher le fichier Open project: cloudant/xamarin-cloudant Class Usage Examples

Private Properties

Свойство Type Description
DisplayDocument string
HandleException void
InitializeUserInterface void
OnCreateDB void
OnCreateIndex void
OnDeleteDB void
OnDeleteIndex void
OnListIndexes void
OnQuery void
OnRetrieveDocument void
OnSaveDocument void
OnUpdateDocument void
ValidateDatabaseExists bool

Méthodes publiques

Méthode Description
HomePage ( CloudantClient client ) : System

Initializes a new instance of the CrossPlatformSample.HomePage class.

Private Methods

Méthode Description
DisplayDocument ( DocumentRevision rev ) : string

Helper class to convert the document contents to a string.

HandleException ( Exception e, string dialogTitle ) : void

Helper method to display an error message for a given exception.

InitializeUserInterface ( List items ) : void

Helper method to initialize the user interface.

OnCreateDB ( ) : void

Code sample to create a database.

OnCreateIndex ( ) : void

Sample code to create an index in the database.

OnDeleteDB ( ) : void

Sample code to delete a database.

OnDeleteIndex ( ) : void

Sample code to delete an index from the database.

OnListIndexes ( ) : void

Sample code to list all existing indexes in the database.

OnQuery ( ) : void

Sample code to search for a document with a given index.

OnRetrieveDocument ( ) : void

Code sample to retrieve a document from the database.

OnSaveDocument ( ) : void

Code sample to save a document in the database.

OnUpdateDocument ( ) : void
ValidateDatabaseExists ( ) : bool

Helper method to validate if a the database already exist.

Method Details

HomePage() public méthode

Initializes a new instance of the CrossPlatformSample.HomePage class.
public HomePage ( CloudantClient client ) : System
client IBM.Cloudant.Client.CloudantClient Valid CloudantClient object initialized with the account information.
Résultat System