Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session5 #6

Open
github-actions bot opened this issue Jun 6, 2023 · 0 comments
Open

Session5 #6

github-actions bot opened this issue Jun 6, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

API のエラーハンドリング

yumemi_weather の API のエラーを補足して、ダイアログを表示しましょう。

課題

  • 使用する API を fetchSimpleWeather() から fetchThrowsWeather() に変更する
  • API のエラーを補足して、エラーの内容に応じて AlertDialog でメッセージを表示する
    • メッセージの内容は自由
  • AlertDialog の OK ボタンをタップすると、ダイアログを閉じる

動作イメージ

※ エラーメッセージは仮で設定しています。

demo

ヒント

天気予報ページと天気予報パネルの状態をそれぞれ別で考えると整理しやすくなるかもしれません。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants