N1
Developer Preview
ChangeLabelsTask
extends ChangeMailTask
Getting Started
First Steps
Guides
Interface Concepts
Building a Package
Interface Components
Application Architecture
Debugging N1
Accessing the Database
Extending the Composer
Writing Specs
Sample Code
Composer Translation
Github Sidebar
API Reference
General
Actions
Atom
BufferedNodeProcess
BufferedProcess
ChangeFolderTask
ChangeLabelsTask
Config
DraggableImg
FocusTrackingRegion
Switch
Task
TaskQueueStatusStore
Component Kit
EventedIFrame
Flexbox
InjectedComponent
InjectedComponentSet
Menu
MenuItem
MenuNameEmailItem
MultiselectActionBar
MultiselectList
Popover
ResizableRegion
RetinaImg
Spinner
TimeoutTransitionGroupChild
UnsafeComponent
Models
Account
Calendar
Contact
File
Folder
Label
Message
Model
Thread
Stores
AccountStore
ComponentRegistry
ContactStore
EventStore
FocusedContentStore
MessageStoreExtension
TaskQueue
WorkspaceStore
Database
Attribute
AttributeBoolean
AttributeCollection
AttributeDateTime
AttributeJoinedData
AttributeNumber
AttributeObject
AttributeServerId
AttributeString
DatabaseStore
DatabaseView
Matcher
ModelQuery
SortOrder
Drafts
DraftChangeSet
DraftStore
DraftStoreExtension
DraftStoreProxy
Atom
Clipboard
Color
CommandRegistry
MenuManager
PackageManager
ScopeDescriptor
StyleManager
ThemeManager
Summary
Create a new task to apply labels to a message or thread.
Takes an options object of the form:
labelsToAdd: An
Array
of
Label
s or
Label
ids to add
labelsToRemove: An
Array
of
Label
s or
Label
ids to remove
threads: An
Array
of
Thread
s or
Thread
ids
messages: An
Array
of
Message
s or
Message
ids