Apps had been allowed to request to pin an app widget on the current launcher since API level 26. As developers, this gave us a chance to make such request in our own Apps. However, the document says "
When a request is denied by the user, the caller app will NOT get any response." Sometimes when there isn't enough room for a widget on the current launcher, the caller app will NOT get any response either.
How to differentiate between these two scenarios? Is there any callback function I can use? Is there any way I can get how much space left on the current launcher?