Example #1
0
 public static void RaiseFenceEvent(FenceState fenceState)
 {
     if (OnFenceTriggered != null)
     {
         OnFenceTriggered(fenceState);
     }
 }
        public static FenceQueryResponse FromAJO(AndroidJavaObject ajo)
        {
            var fenceQueryResponse = new FenceQueryResponse();
            var stateMapAjo        = ajo.CallAJO("getFenceStateMap");
            var keys = stateMapAjo.CallAJO("getFenceKeys").FromJavaIterable <string>();

            keys.ForEach(key => fenceQueryResponse.FenceStateDictionary[key] = FenceState.FromAJO(stateMapAjo.CallAJO("getFenceState", key)));
            return(fenceQueryResponse);
        }