Description :
Hello every one today i’m back with big and awesome extension I did all kinds of sensors in one extension and now you can work with it easily and in an easy way, with some simple blocks
All Blocks:
All Events:
All Functions:
All Properties:
Extension instructions
Or Start Custom Initialize sensor with with the sampling period specified
Sampling peroid block
Temperature Sensor
Get degree of temperature
degree = temperature '°C'
Shake Sensor
Movement Sensor
PickupDevice Sensor
Scoop Sensor
Steps Sensor
On detection user is not Step or Moveing
Chop Sensor
Wrist Twist Sensor
On wrist twist gesture detected
Sound Level Sensor
On sound level detected
@level ~float~
Flip Sensor
Rotaiton Sensor
On device rotation
x ~float~ Angle In Axis X
y ~float~ Angle In Axis Y
z ~float~ Angle In Axis Z
Tilt Direction Sensor
Start tilt direction sensor
Tilt direction on x-axis
Stop tilt direction sensor
Orientation Sensor
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/1/e13e4bd647c4f47e4f6879f20e4e7e8e434dd078.png
Start orientation sensor
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/5/d/5d06003c695f06145ddaa64c4431955d1bfb13ca.png
On left side of device is up
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/6/2/62e4a1ab0e178437517ae7521826bfd4ca9cbbb4.png
On right side of device is up
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/8/4/84a9b789739803e8d2f02d3dfb8b121db28a615f.png
On bottom side of device is up
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/e/2/e280234baa6e30c9dbd93a94e3c11c5bb753ff5e.png
On top side of device is up
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/a/0/a0a7741814955da09e4b0eafb2f88a3f9a746777.png
Stop orientation sensor
Proximity Sensor
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/3/1/31a3ae5fa141c863a31e0cdb7bf67f926ad9a158.png
Start proximity sensor
On thing is far from device
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/5/2/5215c931a2a5dbd20d9e57e9b66513a99ade623b.png
On thing is near from device
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/5/0/509b3b3c5701171c507854a705acb9d7342506c1.png
Stop proximity sensor
Wave Sensor
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/0/2/029ab26f5cd5012dbf99c391a6099667fdb05ae1.png
Start wave sensor
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/c/2/c248e7d09f1d9651963222f3e2342342aacdba11.png
On wave of hand gesture detected
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/4/a/4a6dc60299c87e3f520f109a9ce882c0f52bcd7e.png
Stop wave sensor
Light Sensor
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/b/d/bd507989dd976a7339b1703d5785b1a9084bfdc9.png
Start light sensor
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/4/b/4b58d4483f5993b0e108809d162231da0bdba933.png
On device in dark
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/4/1/4113a258fcbba05c959c64aef9fb33d0a63abb1a.png
On device in light
https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/original/3X/0/8/08112d9cb670c75254b7e3b852c99623e1e884c4.png
Stop light sensor
Pinch Scale Sensor
Start pinch scale sensor
Add this block to detected pinch scale of view
this block is important without it pinch scale blocks will not work
On check is user pinch scale
isScalingOut ~boolean~[True || False]
On scaling started
On scaling stopped
Stop pinch scale sensor
TouchType Sensor
Start touch type sensor
Add this block to detected touch type of view
this block is important without it pinch scale blocks will not work
On user double tap in view of SetupTouchGestures block
On user single tap by 3 fingers
On user single tap by 2 fingers
On user fingle tap
On long press for view of SetupTouchGestures block
On Swipe
@swipeDirection
OnScroll
@scrollDirection
Stop touch type sensor
Finger Gesture Sensor
finger gesture sensor is like touch type + pinch scale
but it is more specialized in terms of counting the number of fingers touching the screen and other things
Start finger gesture sensor
Add this block to detected finger gesture of view
this block is important without it pinch scale blocks will not work
On pinch
@finger ~int~ get number of fingers that used to pinch
@durationMilliseconds ~long~ get time it took the user to pinch
@distancePixels ~double~ get number of pixels the user clicked when they pinch
On unpinch
@finger ~int~ get number of fingers that used to unpinch
@durationMilliseconds ~long~ get time it took the user to unpinch
@distancePixels ~double~ get number of pixels the user clicked when they unpinch
On swipe up
@finger ~int~ get number of fingers that used to swipe up
@durationMilliseconds ~long~ get time it took the user to swipe up
@distancePixels ~double~ get number of pixels the user clicked when they swipe up
On swipe down
@finger ~int~ get number of fingers that used to swipe down
@durationMilliseconds ~long~ get time it took the user to swipe down
@distancePixels ~double~ get number of pixels the user clicked when they swipe down
On swipe left
@finger ~int~ get number of fingers that used to swipe left
@durationMilliseconds ~long~ get time it took the user to swipe left
@distancePixels ~double~ get number of pixels the user clicked when they swipe left
On swipe right
@finger ~int~ get number of fingers that used to swipe right
@durationMilliseconds ~long~ get time it took the user to swipe right
@distancePixels ~double~ get number of pixels the user clicked when they swipe right
On double tap
@finger ~int~ get number of fingers that used to double tap