Skip to content

獲取用戶綁定信息 ​

作用 ​

如果遊戲中需要獲取該用戶,則調用該接口。


函數 ​

objective-c
-(void)gamedreamerGetBindData:(void (^)(NSArray * _Nullable bind, NSArray * _Nullable unbind))complete;

回調 ​

參數名是否可空(是/否)說明
bind是元素為字符串的數組類型,已綁定的渠道信息,例:@[@"fb",@"line",@"twitter",@"google",@"apple",@"phone",@"email"]
unbind是元素為字符串的數組類型,未綁定的渠道信息,例:@[@"fb",@"line",@"twitter",@"google",@"apple",@"phone",@"email"]

示例代碼 ​

objective-c
[[GamedreamerManager shareInstance] gamedreamerGetBindData:^(NSArray * _Nullable bind, NSArray * _Nullable unbind) {
        NSLog(@"已綁定的渠道數據---%@",bind);
        NSLog(@"未綁定的渠道數據---%@",unbind);
    }];