package com.ray650128.gstreamer_demo_app.ui.monitoringScreen

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.WindowManager
import com.ray650128.gstreamer_demo_app.R
import com.ray650128.gstreamer_demo_app.databinding.ActivityMonitoringBinding

class MonitoringActivity : AppCompatActivity() {

    private lateinit var binding: ActivityMonitoringBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
        super.onCreate(savedInstanceState)

        binding = ActivityMonitoringBinding.inflate(layoutInflater)
        setContentView(binding.root)

        initToolbar()
    }

    private fun initToolbar() {
        supportActionBar?.setDisplayHomeAsUpEnabled(true)
        supportActionBar?.setHomeAsUpIndicator(R.drawable.ic_back_arrow)
    }

    override fun onSupportNavigateUp(): Boolean {
        finish()
        return true
    }


    companion object {
        const val BUNDLE_DEVICE_ID = "BUNDLE_DEVICE_ID"
        const val BUNDLE_CHANNEL_ID = "BUNDLE_CHANNEL_ID"
        const val BUNDLE_DEVICE = "BUNDLE_DEVICE"
    }
}