public static extern void AppRegisteredNative(
     string appId,
     IntPtr ffiAuthGrantedPtr,
     IntPtr networkUserData,
     IntPtr userData,
     IntCb netObsCb,
     IntPtrCb appRegCb);
 public void AppRegistered(string appId, IntPtr ffiAuthGrantedPtr, IntCb netObsCb, IntPtrCb appRegCb)
 {
     AppRegisteredNative(appId, ffiAuthGrantedPtr, netObsCb.ToHandlePtr(), appRegCb.ToHandlePtr(), OnIntCb, OnIntPtrCb);
 }