blob: 016af58da74a9668a397e6b5a6a0961b45994d54 [file] [log] [blame]
Nick Pelly590b73b2010-10-12 13:00:50 -07001/*
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
Jeff Hamilton52d32032011-01-08 15:31:26 -060019import android.app.PendingIntent;
20import android.content.ComponentName;
21import android.content.IntentFilter;
Nick Pelly590b73b2010-10-12 13:00:50 -070022import android.nfc.NdefMessage;
23import android.nfc.Tag;
Jeff Hamiltond88e9aa2011-01-24 14:53:00 -060024import android.nfc.TechListParcel;
Jason parks01425362011-05-24 02:57:37 -070025import android.nfc.INdefPushCallback;
Nick Pelly367f41f2011-03-08 11:43:30 -080026import android.nfc.INfcAdapterExtras;
Nick Pellyc84c89a2011-08-22 22:27:11 -070027import android.nfc.INfcTag;
Nick Pelly590b73b2010-10-12 13:00:50 -070028
29/**
30 * @hide
31 */
32interface INfcAdapter
33{
Nick Pelly590b73b2010-10-12 13:00:50 -070034 INfcTag getNfcTagInterface();
Nick Pelly367f41f2011-03-08 11:43:30 -080035 INfcAdapterExtras getNfcAdapterExtrasInterface();
Nick Pelly590b73b2010-10-12 13:00:50 -070036
Nick Pelly8d32a012011-08-09 07:03:49 -070037 int getState();
Nick Pelly590b73b2010-10-12 13:00:50 -070038 boolean disable();
39 boolean enable();
Nick Pellyc84c89a2011-08-22 22:27:11 -070040 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);
Nick Pelly367f41f2011-03-08 11:43:30 -080047}