Main Site Documentation

RemovableMedia.Insert


#1

At least on my system, RemovableMedia.Insert and Eject events happen when SD card is Mounted and Unmounted - not when card is inserted or removed. This seems odd, because I know when I mount and unmount from my code. I don’t know when card is inserted or removed. Does this seem like right expected behavior for these events? tia


#2

Long story but yes this is normal. You need to detect the card using an io then use that to mount and then you get the event as exacted


#3

Thanks Gus. Sorry if repeat question. But any code examples of detecting insert/eject with IO? tia!


#4

Sorry this took long time. See auto mounting section in ebook: