TestServiceの全体的なリファクタリング #28
| 
						 | 
				
			
			@ -218,6 +218,11 @@ public class TestService extends Service {
 | 
			
		|||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 通知を送信する
 | 
			
		||||
     * @param context コンテキスト
 | 
			
		||||
     * @param content NotificationContent 通知内容
 | 
			
		||||
     */
 | 
			
		||||
    public void sendNotification(Context context, NotificationContent content) {//通知を行うメソッド
 | 
			
		||||
 | 
			
		||||
        // 権限の保有を確認
 | 
			
		||||
| 
						 | 
				
			
			@ -283,7 +288,6 @@ public class TestService extends Service {
 | 
			
		|||
        }
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    @Nullable
 | 
			
		||||
    @Override
 | 
			
		||||
    public IBinder onBind(Intent intent) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user