'unregister' handlers

159 views
Skip to first unread message

Nicolas Sharp

unread,
Jun 12, 2017, 9:19:54 AM6/12/17
to InboxSDK
Hope this is an easy one, I'm probably missing something obvious!

When the InboxSDK loads I register a bunch of handlers (sdk.Compose.registerComposeViewHandler, etc). However, the user might log out of the extension will using Gmail and I need to remove all these handlers (I already delete their JWT token, etc.) How do you do this? 

Thanks! 

Omar Ismail

unread,
Jun 12, 2017, 9:33:15 AM6/12/17
to Nicolas Sharp, InboxSDK
yup, definitely missed something obvious :) 

From the registerComposeViewHandler description:

registerComposeViewHandler(handler) Gmail Inboxreturn type: function

Register a handler to be called for every existing ComposeView as well as for all future ComposeViews that may come into existence. This method is the preferred way to add your application to every compose area such as a new compose window or inline reply compose areas. This function returns another function that can be used to unregister - simply call the function to unregister this handler.


--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inboxsdk/9bf99782-b90b-46fd-abff-65684ead9ca9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nicolas Sharp

unread,
Jun 12, 2017, 9:54:08 AM6/12/17
to InboxSDK, nicolas...@gmail.com
Thanks :) 


On Monday, June 12, 2017 at 2:33:15 PM UTC+1, Omar Ismail wrote:
yup, definitely missed something obvious :) 

From the registerComposeViewHandler description:

registerComposeViewHandler(handler) Gmail Inboxreturn type: function

Register a handler to be called for every existing ComposeView as well as for all future ComposeViews that may come into existence. This method is the preferred way to add your application to every compose area such as a new compose window or inline reply compose areas. This function returns another function that can be used to unregister - simply call the function to unregister this handler.

On Mon, Jun 12, 2017 at 6:19 AM, Nicolas Sharp <nicolas...@gmail.com> wrote:
Hope this is an easy one, I'm probably missing something obvious!

When the InboxSDK loads I register a bunch of handlers (sdk.Compose.registerComposeViewHandler, etc). However, the user might log out of the extension will using Gmail and I need to remove all these handlers (I already delete their JWT token, etc.) How do you do this? 

Thanks! 

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.

Nicolas Sharp

unread,
Jun 12, 2017, 10:17:50 AM6/12/17
to InboxSDK, nicolas...@gmail.com
How does this work with 
sdk.Search.registerSearchSuggestionsProvider
?


On Monday, June 12, 2017 at 2:33:15 PM UTC+1, Omar Ismail wrote:
yup, definitely missed something obvious :) 

From the registerComposeViewHandler description:

registerComposeViewHandler(handler) Gmail Inboxreturn type: function

Register a handler to be called for every existing ComposeView as well as for all future ComposeViews that may come into existence. This method is the preferred way to add your application to every compose area such as a new compose window or inline reply compose areas. This function returns another function that can be used to unregister - simply call the function to unregister this handler.

On Mon, Jun 12, 2017 at 6:19 AM, Nicolas Sharp <nicolas...@gmail.com> wrote:
Hope this is an easy one, I'm probably missing something obvious!

When the InboxSDK loads I register a bunch of handlers (sdk.Compose.registerComposeViewHandler, etc). However, the user might log out of the extension will using Gmail and I need to remove all these handlers (I already delete their JWT token, etc.) How do you do this? 

Thanks! 

--
You received this message because you are subscribed to the Google Groups "InboxSDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inboxsdk+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages