User profile

If you know the user's gender and/or birthday, you can share them with us so that we can suggest better matching apps to the user.

import 'package:adjoe/user_profile.dart';
import 'package:adjoe/gender.dart';

void setAdjoeProfile() {
  AdjoeUserProfile profile = new AdjoeUserProfile()
    ..birthday = _birthday
    ..gender = _gender;
  Adjoe.setProfile(_profileSource, profile).then((_) {
    print('Profile was set');
  }, onError: (err) {
    print('Failed to set profile: $err');
  });
}

This method call has no effect if the SDK is not initialized, user has not accepted the adjoe Terms of Service or is blocked by the adjoe services.

Adjoe Parameters

You can pass additional UA and placement parameters when you send the user profile:

Adjoe.setProfile(_profileSource, profile, params);

It is also possible to only set the AdjoeParams object using the setUAParams method:

Adjoe.setUAParams(new AdjoeParams()
        ..uaNetwork = 'flutter_uaNetwork'
        ..uaChannel = 'flutter_uaChannel'
        ..uaSubPublisherCleartext = 'flutter_uaSubPublisherCleartext'
        ..uaSubPublisherEncrypted = 'flutter_uaSubPublisherEncrypted'
        ..placement = 'flutter_placement');