in UnitySDK/Assets/FacebookSDK/SDK/Editor/iOS/FBUnityInterface.mm [704:734]
void IOSFBChooseGamingContext(
int requestID,
const char *filter,
int minSize,
int maxSize)
{
FBUnitySDKDelegate *delegate = [FBUnitySDKDelegate instanceWithRequestID:requestID];
FBSDKChooseContextContent *chooseContent = [FBSDKChooseContextContent alloc];
NSString *filterNSString = [NSString stringWithUTF8String:filter];
if ([filterNSString length] == 0) {
chooseContent.filter = FBSDKChooseContextFilterNone;
} else if ([filterNSString isEqualToString:@"NEW_PLAYERS_ONLY"]) {
chooseContent.filter = FBSDKChooseContextFilterNewPlayersOnly;
} else if ([filterNSString isEqualToString:@"INCLUDE_EXISTING_CHALLENGES"]) {
chooseContent.filter = FBSDKChooseContextFilterExistingChallenges;
} else if ([filterNSString isEqualToString:@"NEW_CONTEXT_ONLY"]) {
chooseContent.filter = FBSDKChooseContextFilterNewContextOnly;
}
if (minSize > 0) {
chooseContent.minParticipants = minSize;
}
if (maxSize > 0) {
chooseContent.maxParticipants = maxSize;
}
[FBSDKContextDialogPresenter showChooseContextDialogWithContent: chooseContent delegate: delegate];
}