MLIMClientDelegate Protocol Reference

Conforms to NSObject
Declared in MLIMClient.h

Overview

The methods decleared by MLIMClientDelegate protocol allows you handle client status change events, messages, and friend status change events.

Connection Status Changes

– clientDidLogin:

Called when user login success.

- (void)clientDidLogin:(MLIMClient *)client

Parameters

client

The client object that login success.

Declared In

MLIMClient.h

– clientDidDisconnect:

Called when connection broken.

- (void)clientDidDisconnect:(MLIMClient *)client

Parameters

client

The client object that disconnect.

Declared In

MLIMClient.h

– clientAttemptReconnect:

Called when client reconnect.

- (void)clientAttemptReconnect:(MLIMClient *)client

Parameters

client

The client object that attempts to reconnect.

Declared In

MLIMClient.h

– clientDidLogout:

Called when user logout.

- (void)clientDidLogout:(MLIMClient *)client

Parameters

client

The client object that logout.

Declared In

MLIMClient.h

Receiving Messages

– client:didReceiveMessage:fromFriend:

Called when receive a message from friend or message send to friend by your other clients.

- (void)client:(MLIMClient *)client didReceiveMessage:(MLIMMessage *)message fromFriend:(MLIMRelationInfo *)aFriend

Parameters

client

The client which received message.

message

The message received.

aFriend

The message sender.

Declared In

MLIMClient.h

– client:didReceiveMessage:fromStranger:

Called when receive a message from room or message send to room by your other clients.

- (void)client:(MLIMClient *)client didReceiveMessage:(MLIMMessage *)message fromStranger:(MLIMRelationInfo *)stranger

Parameters

client

The client which received message.

message

The message received.

stranger

The message sender.

Declared In

MLIMClient.h

– client:didReceiveMessage:fromGroup:

Called when receive a message from group or message send to group by your other clients.

- (void)client:(MLIMClient *)client didReceiveMessage:(MLIMMessage *)message fromGroup:(MLIMGroup *)group

Parameters

client

The client which received message.

message

The message received

group

The group that message belongs to.

Declared In

MLIMClient.h

– client:didReceiveMessage:fromRoom:

Called when receive a message from room or message send to room by your other clients.

- (void)client:(MLIMClient *)client didReceiveMessage:(MLIMMessage *)message fromRoom:(MLIMRoom *)room

Parameters

client

The client which received message.

message

The message received.

room

The room that message belongs to.

Declared In

MLIMClient.h

– client:didReceiveSystemMessage:

Called when receive a message from system.

- (void)client:(MLIMClient *)client didReceiveSystemMessage:(MLIMMessage *)message

Parameters

client

The client which received message

message

The message received

Declared In

MLIMClient.h

Friend Online Status Changes

– client:friendDidOnline:

Called when a friend online.

- (void)client:(MLIMClient *)client friendDidOnline:(MLIMRelationInfo *)aFriend

Parameters

client

The client

aFriend

The friend online.

Declared In

MLIMClient.h

– client:friendDidOffline:

Called when a friend offline

- (void)client:(MLIMClient *)client friendDidOffline:(MLIMRelationInfo *)aFriend

Parameters

client

The client

aFriend

The friend offline.

Declared In

MLIMClient.h

– client:someoneDidOnline:

Notify a stranger online event.

- (void)client:(MLIMClient *)client someoneDidOnline:(MLIMRelationInfo *)someone

Parameters

client

the client

someone

the stranger

Declared In

MLIMClient.h

– client:someoneDidOffline:

Notify a stranger offline evnt

- (void)client:(MLIMClient *)client someoneDidOffline:(MLIMRelationInfo *)someone

Parameters

client

the client

someone

the stranger

Declared In

MLIMClient.h