Platforms to show: All Mac Windows Linux Cross-Platform

Back to InstantMessageMBS class.

InstantMessageMBS.allServices as IMServiceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 11.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the list of services currently available to the user, regardless of their status.

Returns nil on failure.

Returns a array with IMServiceMBS objects corresponding to the current available services (AIM, Bonjour, Jabber, and so on.)

Some examples using this method:

InstantMessageMBS.imageFileForStatus(status as Integer) as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the folderitem of the image corresponding to the IMPersonStatus specified by status.

This image reflects the status of the user, and is usually reflected by a colored bubble or triangle.

Returns nil on failure.
This is a convenience function which will call imageFileForStatus and return the folderitem matching the URL in case it points to a disc file.

For Mac OS X 10.4 all images are stored as TIFF files on hard disc. Use the TiffPictureMBS class to load them (OpenAsPicture will not work because of the masks).

values:
IMPersonStatusUnknown= 0
IMPersonStatusOffline= 1
IMPersonStatusIdle= 2
IMPersonStatusAway= 3
IMPersonStatusAvailable= 4

InstantMessageMBS.imageNameForStatus(status as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 7.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the image name for the given status.

Mac OS X 10.5 only.
On Mac OS X the NSImage class can be used to access system images by name and there you can use this name.

InstantMessageMBS.imageURLForStatus(status as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the URL of the image corresponding to the IMPersonStatus specified by status.

This image reflects the status of the user, and is usually reflected by a colored bubble or triangle.

Returns nil on failure.

values:
IMPersonStatusUnknown= 0
IMPersonStatusOffline= 1
IMPersonStatusIdle= 2
IMPersonStatusAway= 3
IMPersonStatusAvailable= 4

InstantMessageMBS.myIdleTime as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Class method to return the idle time of the active user.

Returns in seconds the time since the currently active user went idle.

Some examples using this method:

InstantMessageMBS.myStatus as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Class method to return the status of the currently active user.

This status is global across all services.

values:
IMPersonStatusUnknown= 0
IMPersonStatusOffline= 1
IMPersonStatusIdle= 2
IMPersonStatusAway= 3
IMPersonStatusAvailable= 4

Some examples using this method:

InstantMessageMBS.notificationCenter as NSNotificationCenterMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 9.7 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the custom notification center for the service.

A custom notification center that manages IMService notifications.
Available in Mac OS X v10.4 and later.

InstantMessageMBS.serviceWithName(name as string) as IMServiceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Instant Message MBS MacCocoa Plugin 7.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns only the service specified by a given name.

name: A String containing a service name as returned by a previous call to name.
Hard-coding the service names internally is not recommended.

Returns an IMService object corresponding to the available service specified by name.
Returns nil on any failure.

The items on this page are in the following plugins: MBS MacCocoa Plugin.


The biggest plugin in space...