ui/common/src/commonMain/kotlin/BrowserLauncher.kt
changeset 51 d69bdf1ad491
parent 36 a8cfcfe9a6ed
child 80 2474591aa280
equal deleted inserted replaced
50:baa92ecc2001 51:d69bdf1ad491
    19  * You should have received a copy of the GNU General Public License
    19  * You should have received a copy of the GNU General Public License
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.
    21  */
    21  */
    22 package com.geekorum.aboutoss.ui.common
    22 package com.geekorum.aboutoss.ui.common
    23 
    23 
       
    24 import androidx.compose.runtime.Composable
       
    25 
    24 
    26 
    25 /**
    27 /**
    26  * Interface to be able to launch a browser to display a link
    28  * Interface to be able to launch a browser to display a link
    27  */
    29  */
    28 interface BrowserLauncher {
    30 interface BrowserLauncher {
    29     fun warmUp()
       
    30 
    31 
    31     fun launchUrl(link: String)
    32     fun launchUrl(link: String)
    32 
    33 
    33     fun mayLaunchUrl(vararg uris: String)
    34     fun mayLaunchUrl(vararg uris: String)
    34 
    35 
    35     fun shutdown()
       
    36 }
    36 }
       
    37 
       
    38 @Composable
       
    39 expect fun rememberBrowserLauncher(): BrowserLauncher