INfcAdapter.aidl revision bb951c893973691554f49d2e725985125f866b27
1/* 2 * Copyright (C) 2010 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 17package android.nfc; 18 19import android.app.PendingIntent; 20import android.content.ComponentName; 21import android.content.IntentFilter; 22import android.nfc.NdefMessage; 23import android.nfc.Tag; 24import android.nfc.TechListParcel; 25import android.nfc.INdefPushCallback; 26import android.nfc.INfcAdapterExtras; 27import android.nfc.INfcTag; 28 29/** 30 * @hide 31 */ 32interface INfcAdapter 33{ 34 INfcTag getNfcTagInterface(); 35 INfcAdapterExtras getNfcAdapterExtrasInterface(in String pkg); 36 37 int getState(); 38 boolean disable(); 39 boolean enable(); 40 boolean enableNdefPush(); 41 boolean disableNdefPush(); 42 boolean isNdefPushEnabled(); 43 44 void setForegroundDispatch(in PendingIntent intent, 45 in IntentFilter[] filters, in TechListParcel techLists); 46 void setForegroundNdefPush(in NdefMessage msg, in INdefPushCallback callback); 47} 48