小编Sha*_*aul的帖子

UserProfileChangeRequest setPhotoUri - 它是如何完成的?

如果我想允许用户从设备上传自己的照片:

  1. 需要什么图像格式?

  2. 图像文件大小?

  3. 图片尺寸?

  4. 我要上传到哪里?

代码:

UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder()
        .setDisplayName("Jane Q. User")
        .setPhotoUri(Uri.parse("https://example.com/jane-q-user/profile.jpg"))
        .build();
Run Code Online (Sandbox Code Playgroud)

android firebase firebase-authentication

5
推荐指数
1
解决办法
3107
查看次数