CSLA helper to be used in place of the normal Xamarin Android activity that contains a reference to a CSLA ViewModel and a BindingManager. More...
Protected Member Functions | |
ActivityBase (ApplicationContext applicationContext) | |
Creates an instance of the type. More... | |
override void | OnCreate (Bundle bundle) |
Event that occurs when the activity is created. More... | |
byte[] | SerializeModelForParameter () |
Serializes the ViewModel's model property using the SerializationFormatterFactory.GetFormatter(). More... | |
byte[] | SerializeModelForParameter (object model) |
Serialized the provided model using the SerializationFormatterFactory.GetFormatter(). More... | |
object | DeserializeFromParameter (byte[] parameter) |
Takes a byte array and uses the MobileFormatter to reconstitute it into a model reference. More... | |
Protected Attributes | |
T | viewModel = null |
A reference to the view model. More... | |
BindingManager | Bindings = null |
The BindingManager for this Activity. More... | |
CSLA helper to be used in place of the normal Xamarin Android activity that contains a reference to a CSLA ViewModel and a BindingManager.
T | A type that inherits from the ViewModel. |
Z | The type that is defined as used by T. |
T | : | ViewModel<Z> |
Definition at line 22 of file ActivityBase.cs.
|
protected |
Creates an instance of the type.
applicationContext |
Definition at line 30 of file ActivityBase.cs.
|
protected |
Takes a byte array and uses the MobileFormatter to reconstitute it into a model reference.
parameter | An array of bytes to deserialized. |
Definition at line 79 of file ActivityBase.cs.
|
protected |
Event that occurs when the activity is created.
bundle | Information about the activities creation. |
Definition at line 49 of file ActivityBase.cs.
|
protected |
Serializes the ViewModel's model property using the SerializationFormatterFactory.GetFormatter().
Used to serialize and transfer models between activities.
Definition at line 59 of file ActivityBase.cs.
|
protected |
Serialized the provided model using the SerializationFormatterFactory.GetFormatter().
Used to serialize and transfer models between activities.
model | A reference to the model to serialize. |
Definition at line 69 of file ActivityBase.cs.
|
protected |
The BindingManager for this Activity.
Definition at line 43 of file ActivityBase.cs.
|
protected |
A reference to the view model.
Definition at line 38 of file ActivityBase.cs.