Android Auto Companion | 0d50255 | 2022-03-09 16:18:25 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package com.google.android.connecteddevice.transport; |
| 18 | |
| 19 | import com.google.android.connecteddevice.transport.IConnectionProtocol; |
| 20 | |
| 21 | /** Delegate for registering protocols to the platform. */ |
| 22 | interface IProtocolDelegate { |
| 23 | /** Add a protocol to the collection of supported protocols. */ |
| 24 | void addProtocol(in IConnectionProtocol protocol); |
| 25 | |
Android Auto Companion | 6e80f2f | 2022-04-12 14:01:37 -0700 | [diff] [blame^] | 26 | /** Add an OOB protocol to the collection of supported OOB protocols. */ |
| 27 | void addOobProtocol(in IConnectionProtocol protocol); |
| 28 | |
Android Auto Companion | 0d50255 | 2022-03-09 16:18:25 -0800 | [diff] [blame] | 29 | /** Remove a protocol from the collection of supported protocols. */ |
| 30 | void removeProtocol(in IConnectionProtocol protocol); |
Android Auto Companion | 6e80f2f | 2022-04-12 14:01:37 -0700 | [diff] [blame^] | 31 | |
| 32 | /** Remove an OOB protocol to the collection of supported OOB protocols. */ |
| 33 | void removeOobProtocol(in IConnectionProtocol protocol); |
Android Auto Companion | 0d50255 | 2022-03-09 16:18:25 -0800 | [diff] [blame] | 34 | } |