isPinned property to check whether the user has pinned the task pane
We'd like to have a property that will tell us if the Outlook Addin Task pane is currently pinned. (similar to this question where the OP didn't provide the use case: https://stackoverflow.com/questions/52050254/can-i-know-if-the-task-pane-is-pinned-or-not-in-outlook-web-add-in)
Our use case is that we have both synchronous and asynchronous REST APIs we can utilize. If we know that the task pane is pinned, we can execute an Async API call without blocking the UI further from the user and show a notification when the background function (say a setInterval) gets a successful status from the Async API.
If the task pane is not pinned, we need to block the UI and execute a sync call and have the user wait on it.
Without reliably knowing that the task pane is pinned we have to use complicated queuing logic on the client to make the call work for both pinned and unpinned state.