diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:44 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:31:44 -0800 |
commit | edbf3b6af777b721cd2a1ef461947e51e88241e1 (patch) | |
tree | f09427b843b192cccf8c3b5328cb81dddf6489fa /im/java/android/im/IImPlugin.aidl | |
parent | d5193d9394c5e58176d7bcdf50ef017f8a3b9e1e (diff) | |
download | frameworks_native-edbf3b6af777b721cd2a1ef461947e51e88241e1.zip frameworks_native-edbf3b6af777b721cd2a1ef461947e51e88241e1.tar.gz frameworks_native-edbf3b6af777b721cd2a1ef461947e51e88241e1.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'im/java/android/im/IImPlugin.aidl')
-rw-r--r-- | im/java/android/im/IImPlugin.aidl | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/im/java/android/im/IImPlugin.aidl b/im/java/android/im/IImPlugin.aidl new file mode 100644 index 0000000..229cd0e --- /dev/null +++ b/im/java/android/im/IImPlugin.aidl @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2008 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.im; + +/** + * @hide + */ +interface IImPlugin { + /** + * Notify the plugin the front door activity is created. This gives the plugin a chance to + * start its own servics, etc. + */ + void onStart(); + + /** + * Notify the plugin the front door activity is stopping. + */ + void onStop(); + + /** + * Sign in to the service for the account passed in. + * + * @param account the account id for the accont to be signed into. + */ + void signIn(long account); + + /** + * Sign out of the service for the account passed in. + * + * @param account the account id for the accont to be signed out of. + */ + void signOut(long account); + + /** + * Returns the package name used to load the resources for the given provider name. + * + * @return The package name to load the resourcs for the given provider. + */ + String getResourcePackageNameForProvider(String providerName); + + /** + * Returns a map of branding resources for the given provider. The keys are defined + * in {@link android.im.BrandingResourceIDs}. The values are the resource identifiers generated + * by the aapt tool. + * + * @return The map of branding resources for the given provider. + */ + Map getResourceMapForProvider(String providerName); + + /* + * Returns a list of supported IM providers. + * + * @return a List of supported providers. + */ + List getSupportedProviders(); +} |