PageSourceSearch

https://openim-docs-legacy.vercel.app/assets/js/e39b6da1.c159b51d.js

js openim-docs-legacy.vercel.app collected 2026-10-03 07:27:18 UTC 9,831 bytes, 2 lines download raw bytes

1/*! For license information please see e39b6da1.c159b51d.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkopenim_docs=globalThis.webpackChunkopenim_docs||[]).push([[758],{82846(e,n,r){r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>d,default:()=>h,frontMatter:()=>l,metadata:()=>t,toc:()=>a});const t=JSON.parse('{"id":"callback/onFriendInfoChanged","title":"onFriendInfoChanged","description":"Description","source":"@site/i18n/en/docusaurus-plugin-content-docs-sdks/current/callback/onFriendInfoChanged.md","sourceDirName":"callback","slug":"/callback/onFriendInfoChanged","permalink":"/sdks/callback/onFriendInfoChanged","draft":false,"unlisted":false,"editUrl":"https://github.com/OpenIMSDK/docs/tree/main/docs/sdks/callback/onFriendInfoChanged.md","tags":[],"version":"current","lastUpdatedAt":1773123673000,"sidebarPosition":3,"frontMatter":{"sidebar_position":3,"toc_min_heading_level":2,"toc_max_heading_level":2},"sidebar":"tutorialSidebar","previous":{"title":"onFriendDeleted","permalink":"/sdks/callback/onFriendDeleted"},"next":{"title":"onGroupApplicationAccepted","permalink":"/sdks/callback/onGroupApplicationAccepted"}}');var s=r(86070),i=r(81753);const l={sidebar_position:3,toc_min_heading_level:2,toc_max_heading_level:2},d="onFriendInfoChanged",o={},a=[{value:"Description",id:"description",level:2},{value:"Return Prototype",id:"return-prototype",level:3},{value:"Return Results",id:"return-results",level:3},{value:"Return Prototype",id:"return-prototype-1",level:3},{value:"Return Results",id:"return-results-1",level:3},{value:"Return Prototype",id:"return-prototype-2",level:3},{value:"Return Results",id:"return-results-2",level:3},{value:"Return Prototype",id:"return-prototype-3",level:3},{value:"Return Results",id:"return-results-3",level:3},{value:"Call Example",id:"call-example",level:3},{value:"Return Prototype",id:"return-prototype-4",level:3},{value:"Return Results",id:"return-results-4",level:3},{value:"Call Example",id:"call-example-1",level:3},{value:"Return Prototype",id:"return-prototype-5",level:3},{value:"Return Results",id:"return-results-5",level:3}];function c(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components},{TabItem:r,Tabs:t}=n;return r||u("TabItem",!0),t||u("Tabs",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"onfriendinfochanged",children:"onFriendInfoChanged"})}),"\n",(0,s.jsx)(n.h2,{id:"description",children:"Description"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsx)(n.p,{children:"This callback is triggered when a friend's personal information (including remarks) changes."})}),"\n",(0,s.jsxs)(t,{groupId:"sdks-language",values:[{label:"iOS",value:"iOS"},{label:"Android",value:"Android"},{label:"Flutter",value:"Flutter"},{label:"uni-app",value:"uni-app"},{label:"Browser/Electron/MiniProgram",value:"Web"},{label:"Unity",value:"Unity"}],children:[(0,s.jsxs)(r,{value:"Flutter",children:[(0,s.jsx)(n.h3,{id:"return-prototype",children:"Return Prototype"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-dart",metastring:"showLineNumbers",children:"  Function(FriendInfo info)? onFriendInfoChanged;\n"})}),(0,s.jsx)(n.h3,{id:"return-results",children:"Return Results"}),(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"info"}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"/sdks/class/relation/friendInfo",children:"FriendInfo"})}),(0,s.jsx)(n.td,{children:"Friend info"})]})})]})]}),(0,s.jsxs)(r,{value:"iOS",children:[(0,s.jsx)(n.h3,{id:"return-prototype-1",children:"Return Prototype"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-swift",metastring:"showLineNumbers",children:"- (void)onFriendInfoChanged:(OIMFriendInfo *)info;\n"})}),(0,s.jsx)(n.h3,{id:"return-results-1",children:"Return Results"}),(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"info"}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"/sdks/class/relation/friendInfo",children:"OIMFriendInfo"})}),(0,s.jsx)(n.td,{children:"Friend info"})]})})]})]}),(0,s.jsxs)(r,{value:"Android",children:[(0,s.jsx)(n.h3,{id:"return-prototype-2",children:"Return Prototype"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-java",metastring:"showLineNumbers",children:" void onFriendInfoChanged(FriendInfo u)\n"})}),(0,s.jsx)(n.h3,{id:"return-results-2",children:"Return Results"}),(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"u"}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"/sdks/class/relation/friendInfo",children:"FriendInfo"})}),(0,s.jsx)(n.td,{children:"Friend info"})]})})]})]}),(0,s.jsxs)(r,{value:"Web",children:[(0,s.jsx)(n.h3,{id:"return-prototype-3",children:"Return Prototype"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",metastring:"showLineNumbers",children:"onFriendInfoChanged(data: WSEvent<FriendUserItem>): void;\n"})}),(0,s.jsx)(n.h3,{id:"return-results-3",children:"Return Results"}),(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"data"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.a,{href:"/sdks/class/response",children:"WSEvent"}),"<",(0,s.jsx)(n.a,{href:"/sdks/class/relation/friendInfo",children:"FriendUserItem"}),">"]}),(0,s.jsx)(n.td,{children:"Friend info"})]})})]}),(0,s.jsx)(n.h3,{id:"call-example",children:"Call Example"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"showLineNumbers",children:"import { getSDK } from '@openim/wasm-client-sdk';\nconst IMSDK = getSDK();\n\nIMSDK.on(CbEvents.OnFriendInfoChanged, ({ data }) =>
2 {\n  // data: friend info\n});\n"})})]}),(0,s.jsxs)(r,{value:"uni-app",children:[(0,s.jsx)(n.h3,{id:"return-prototype-4",children:"Return Prototype"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",metastring:"showLineNumbers",children:"onFriendInfoChanged(data: WSEvent<FriendUserItem>): void;\n"})}),(0,s.jsx)(n.h3,{id:"return-results-4",children:"Return Results"}),(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"data"}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.a,{href:"/sdks/class/response",children:"WSEvent"}),"<",(0,s.jsx)(n.a,{href:"/sdks/class/relation/friendInfo",children:"FriendUserItem"}),">"]}),(0,s.jsx)(n.td,{children:"Friend info"})]})})]}),(0,s.jsx)(n.h3,{id:"call-example-1",children:"Call Example"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",metastring:"showLineNumbers",children:"import IMSDK from 'openim-uniapp-polyfill';\n\nIMSDK.subscribe(IMSDK.IMEvents.OnFriendInfoChanged, ({ data }) => {\n  // data: friend info\n});\n"})})]}),(0,s.jsxs)(r,{value:"Unity",children:[(0,s.jsx)(n.h3,{id:"return-prototype-5",children:"Return Prototype"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-C#",metastring:"showLineNumbers",children:"void OnFriendInfoChanged(FriendInfo info);\n"})}),(0,s.jsx)(n.h3,{id:"return-results-5",children:"Return Results"}),(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"info"}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"/sdks/class/relation/friendInfo",children:"FriendInfo"})}),(0,s.jsx)(n.td,{children:"Friend info"})]})})]})]})]})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}function u(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},77462(e,n,r){var t=r(30758),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,r){var t,i={},a=null,c=null;for(t in void 0!==r&&(a=""+r),void 0!==n.key&&(a=""+n.key),void 0!==n.ref&&(c=n.ref),n)l.call(n,t)&&!o.hasOwnProperty(t)&&(i[t]=n[t]);if(e&&e.defaultProps)for(t in n=e.defaultProps)void 0===i[t]&&(i[t]=n[t]);return{$$typeof:s,type:e,key:a,ref:c,props:i,_owner:d.current}}n.Fragment=i,n.jsx=a,n.jsxs=a},86070(e,n,r){e.exports=r(77462)},81753(e,n,r){r.d(n,{R:()=>l,x:()=>d});var t=r(30758);const s={},i=t.createContext(s);function l(e){const n=t.useContext(i);return t.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.