This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class BundleExtensions | |
{ | |
const string SERIALIZED_KEY = "__JSONSERIALIZED__"; | |
static List<IMapItem> typesMapping; | |
//TODO: put in order of preference (cf string/charseq , serializable/parcelable, ...) because the for loop will stop at the first recognized type | |
static BundleExtensions() { | |
typesMapping = new List<IMapItem>{ | |
new TypeMap<IBinder> ((b, i, v) => b.PutBinder(i, v), (b, i) => b.GetBinder(i)), |