getGroupApplicationListAsApplicant
Feature Description
Description
Retrieve the group join requests you have sent as an applicant.
Note
Retrieve all group join requests at once.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- React-Native
- Unity
Function Prototype
Future<List<GroupApplicationInfo>> getGroupApplicationListAsApplicant(
{String? operationID})
Input Parameters
None
Return Result
Parameter Name | Data Type | Description |
---|---|---|
~ | List<GroupApplicationInfo> | Successful return |
Code Example
List<GroupApplicationInfo> list = await OpenIM.iMManager.groupManager.getGroupApplicationListAsApplicant();
// todo
Function Prototype
- (void)getGroupApplicationListAsApplicantWithOnSuccess:(nullable OIMGroupsApplicationCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;
Input Parameters
None
Return Result
Parameter Name | Data Type | Description |
---|---|---|
onSuccess | NSArray< OIMGroupApplicationInfo *> | Successful return |
onFailure | OIMFailureCallback | Failure return |
Code Example
[OIMManager.manager getGroupApplicationListAsApplicantWithOnSuccess:^(NSArray<OIMGroupApplicationInfo *> * _Nullable groupsInfo) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];
Function Prototype
public void getSendGroupApplicationList(OnBase<List<GroupApplicationInfo>> callBack)
Input Parameters
Parameter Name | Data Type | Mandatory | Description |
---|---|---|---|
callBack | OnBase<List<GroupApplicationInfo>> | Yes | Callback |
Return Result
Code Example
OpenIMClient.getInstance().groupManager.getSendGroupApplicationList(new OnBase<List<GroupApplicationInfo>>() {
@Override
public void onError(int code, String error) {
}
@Override
public void onSuccess(List<GroupApplicationInfo> data) {
}
});
Function Prototype
IMSDK.getGroupApplicationListAsApplicant(operationID?: string): Promise<WsResponse<GroupApplicationItem[]>>
Input Parameters
None
Return Result
Parameter Name | Data Type | Description |
---|---|---|
Promise.then() | Promise<WsResponse<GroupApplicationItem[]>> | List of join requests |
Promise.catch() | Promise<WsResponse> | Failure callback |
Code Example
import { getSDK } from '@openim/wasm-client-sdk';
const IMSDK = getSDK();
// use in electron with ffi
// import { getWithRenderProcess } from '@openim/electron-client-sdk/lib/render';
// const { instance: IMSDK } = getWithRenderProcess();
// use in mini program
// import { getSDK } from '@openim/client-sdk';
// const IMSDK = getSDK();
IMSDK.getGroupApplicationListAsApplicant()
.then(({ data }) => {
// Successful call
})
.catch(({ errCode, errMsg }) => {
// Call failed
});
Function Prototype
IMSDK.asyncApi('getGroupApplicationListAsApplicant', operationID: string): Promise<GroupApplicationItem[]>
Input Parameters
Parameter Name | Data Type | Mandatory | Description |
---|---|---|---|
operationID | string | Yes | Operation ID, used for troubleshooting, keep unique. Suggested to use current time and random number. |
Return Result
The function is made Promise-based through the
openim-uniapp-polyfill
package. When calling, you need to usethen
andcatch
to determine and handle the successful and failure callbacks, respectively.
Parameter Name | Data Type | Description |
---|---|---|
Promise.then() | Promise<GroupApplicationItem[]> | List of join requests |
Promise.catch() | Promise<CatchResponse> | Failure callback |
Code Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.asyncApi('getGroupApplicationListAsApplicant', IMSDK.uuid())
.then((data) => {
// Successful call
})
.catch(({ errCode, errMsg }) => {
// Call failed
});
Function Prototype
OpenIMSDKRN.getGroupApplicationListAsApplicant(operationID: string): Promise<GroupApplicationItem[]>
Input Parameters
Parameter Name | Parameter Type | Mandatory | Description |
---|---|---|---|
operationID | string | Yes | Operation ID, used for problem location, keep unique, suggest using current time and random number |
Return Result
Parameter Name | Parameter Type | Description |
---|---|---|
Promise.then() | Promise<GroupApplicationItem[]> | List of join requests |
Promise.catch() | Promise<CatchResponse> | Callback on failed call |
Code Example
import OpenIMSDKRN from "open-im-sdk-rn";
OpenIMSDKRN.getGroupApplicationListAsApplicant('operationID')
.then((data) => {
// Successful call
})
.catch(({ errCode, errMsg }) => {
// Call failed
});
Function Prototype
public static void GetGroupApplicationListAsApplicant(OnBase<List<GroupApplicationInfo>> cb)
Input Parameter
Parameter Name | Parameter Type | Mandatory | Description |
---|---|---|---|
cb | OnBase<List<GroupApplicationInfo>> | Yes | Callback |
Return Result
Code Example
IMSDK.GetGroupApplicationListAsApplicant((list,errCode,errMsg)=>{
});