GetDefault() public static method

public static GetDefault ( ) : LightSensor
return LightSensor
Example #1
0
 private static Sensor GetSensor()
 {
     try
     {
         return(Sensor.GetDefault());
     }
     catch
     {
         return(null);
     }
 }