getPrimaryTabIds()

Returns all of the IDs of open primary tabs. This method is only available in API version 26.0 or later.

NameTypeDescription
callbackfunctionJavaScript method that’s called upon completion of the method.

This method is asynchronous so it returns its response in an object in a callback method. The response object contains the following fields:

NameTypeDescription
idsstringAn array of open primary tab IDs , in order of appearance.
successbooleantrue if returning the IDs of open primary tabs was successful; false if returning the IDs of open primary tabs wasn’t successful.